Questions tagged [yum]

Yellowdog Updater Modified (yum) is an interactive, rpm based, package manager.

yum is an interactive, rpm based, package manager. It can automatically perform system updates, including dependency analysis and obsolete processing based on "repository" metadata. It can also perform installation of new packages, removal of old packages and perform queries on the installed and/or available packages among many other commands/services (see below). yum is similar to other high level package managers like apt-get and smart.

1611 questions
336
votes
2 answers

How can I instruct yum to install a specific version of package X?

If there are two (or more) versions of a given RPM available in a YUM repository, how can I instruct yum to install the version I want? Looking through the Koji build service I notice that there are several versions.     
slm
  • 363,520
  • 117
  • 767
  • 871
202
votes
2 answers

In CentOS, what is the difference between yum update and yum upgrade?

What is the difference between yum update and yum upgrade, and when should I use one over the other?
Lester Peabody
  • 2,359
  • 5
  • 17
  • 13
147
votes
4 answers

What is yum equivalent of 'apt-get update'?

Debian's apt-get update fetches and updates the package index. Because I'm used to this way of doing things, I was surprised to find that yum update does all that and upgrades the system. This made me curious of how to update the package index…
tshepang
  • 64,472
  • 86
  • 223
  • 290
108
votes
1 answer

How do I force yum to install without prompting the user, using bash?

I'm writing a bash script to install php5.4 and I'd like to automate this for a test VM. The rpm command I have is: rpm -Uvh http://mirror.webtatic.com/yum/el5/latest.rpm yum install php54w Now, in the middle of this running, there is a user prompt…
Bradley
  • 1,489
  • 3
  • 10
  • 15
105
votes
8 answers

Yum: How can I view variables like $releasever, $basearch & $YUM0?

I am setting up a yum repository, and need to debug some of the URLs in the yum.conf file. I need to know why is Scientific Linux trying to grab this URL, when I was expecting it to grab another URL: # yum install package…
Stefan Lasiewski
  • 19,264
  • 24
  • 70
  • 85
105
votes
3 answers

How to install dig on CentOS?

I can't find the dig command on my new CentOS installation. I've tried dnf install dig but it say that it cannot find the package. How do I install dig on CentOS?
Mikael Dúi Bolinder
  • 3,982
  • 5
  • 18
  • 23
87
votes
2 answers

Nslookup: command not found error on RHEL/CentOS 7

During linux installation I selected "minimal" option: When I went to run the nslookup command to look up an IP address I got the error message nslookup: command not found as shown in the example below. $ nslookup www.google.com bash: nslookup:…
Anthony Ananich
  • 7,234
  • 5
  • 31
  • 45
85
votes
5 answers

How can I tell whether a package is installed via yum in a bash script?

I am trying to write a script that installs packages, but if it fails at any point later in the script rolls back whatever it installed. Of course if the user has already previously installed a package I don't want to uninstall it out from under…
Doktor J
  • 2,622
  • 2
  • 15
  • 18
82
votes
8 answers

List all RPM packages installed from repo "X"

How can I get a list of all of the RPM packages that have been installed on my system from a particular repo (e.g., "epel")?
Lorin Hochstein
  • 8,077
  • 17
  • 50
  • 56
81
votes
5 answers

Remove unused packages

I have installed some rpm package on my Fedora 17. Some packages had a lot of dependencies. I have removed some packages but I forgot remove unused dependencies with yum remove. How can I do that now?
mudlee
81
votes
6 answers

Listing packages in Yum that depend on another installed package

I am trying to install a 3rd-party RPM package on RHEL5 which depends on version 3.4 of sqlite. According to Yum I already have 3.3.6 installed. Is there a way to list the installed packages that depend on sqlite 3.3.6?
Rich
  • 4,439
  • 10
  • 33
  • 34
74
votes
3 answers

yum install in user home for non-admins

I am a non-admin user on a large computer system. I need some up to date packages that are not installed on the system. I want to use yum to install them. As a user without sudo, admin, or root access, can I use package management to install…
highBandWidth
  • 873
  • 1
  • 7
  • 7
68
votes
2 answers

Yum Check Available Package Updates

Red Hat docs say: To see which installed packages on your system have updates available, use the following command: yum check-update What command must I run to view all available versions for a package installed on my system? Example: yum…
Kevin Meredith
  • 917
  • 1
  • 8
  • 9
65
votes
4 answers

yum Error:rpmdb open failed

I'm trying to run yum update and I'm running this error: rpmdb: PANIC: fatal region error detected; run recovery error: db3 error(-30974) from dbenv->open: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using…
Ghasem
  • 2,289
  • 3
  • 15
  • 19
63
votes
12 answers

Non-Root Package Managers

From my research, I seem to notice that all package managers insist on being used as a privileged user and must be installed into /. Typically, what I like to do is create a throwaway account, compile some software, and install to $HOME for that…
elmt
  • 732
  • 1
  • 6
  • 6
1
2 3
99 100