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

learn more… | top users | synonyms

29
votes
8answers
7k views

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, ...
25
votes
7answers
40k views

How can I remove Orphan Packages in Fedora?

I just switched from Ubuntu to Fedora14. In Ubuntu we had the apt-get autoremove thing to remove orphan/unused packages. What is the counterpart in Fedora?
22
votes
4answers
32k views

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 ...
22
votes
2answers
11k views

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 ...
22
votes
2answers
21k views

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?
19
votes
2answers
36k views

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

If there are 2 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 ...
15
votes
11answers
60k views

Cannot enable network after CentOS 6.3 fresh install

I am trying to perform a fresh CentOS 6.3 installation then run various yum commands such as yum install httpd. The installation runs fine, however I cannot run any network based commands like yum I ...
15
votes
4answers
1k views

How to know what name to type to launch a program after installing it with yum/rpm?

I just installed a rpm using the following command: yum localinstall ./FoxitReader-1.1-0.fc9.i386.rpm Now, this did the trick and I could launch the app using: FoxitReader & What if ...
15
votes
3answers
26k views

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: ...
15
votes
2answers
31k views

What is Fedora's equivalent of 'apt-get purge'?

In Debian, there's at least two ways to delete a package: apt-get remove pkgname apt-get purge pkgname The first preserves system-wide config files (i.e. those found in "/etc"), while the second ...
14
votes
4answers
5k views

Duplicating a Yum-based Linux installation

Given an installation based on Yum (specifically in my case, a Scientific Linux 5.1 x86_64 installation), how would I duplicate the installed programs and utilities to a new machine based on Fedora ...
13
votes
1answer
11k views

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 ...
12
votes
1answer
12k views

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 ...
12
votes
5answers
76k views

How to add a repository on Fedora?

With one repository I did it like this (as root): # cd /etc/yum.repos # wget https://some.repo.example.org/foo/bar/Fedora_14/foo_bar.repo # grep enabled foo_bar.repo enabled=1 Is this the ...
10
votes
2answers
15k views

How to install dig on CentOS 6?

I can't find the dig command on my new CentOS 6 installation. I've tried yum install dig but it say it cannot find the package. How do I install dig on CentOS 6?
10
votes
5answers
640 views

Why using rpm if there's yum?

As we know yum is a package management system which was built on top of rpm. It's also a command line utility which is a(rudely speaking) broader version of rpm, it resolves many problems(the main is ...
10
votes
3answers
9k views

After yum update is it a good idea to restart the server?

I'm aware that it is good to run yum update from time to time to keep my Centos server updated, and I even see that there is way to automate this update. My question is, is it necessary to restart ...
10
votes
1answer
2k views

What do the characters y/d/N mean?

Dumb question, I know, but when I am updating my system, the machine tells me the size of the packages to download and asks me: is this ok: [y/d/N]? I know the meaning of y (yes) and N (no), but ...
10
votes
2answers
3k views

Should you run automatic updates

I'm running production Centos web servers. I want to know what is best practice for running updates. Should I automate this with yum-cron or yum-updatesd? Or is there a danger of updates breaking ...
10
votes
2answers
11k views

Package bash-completion missing from Yum in CentOS 6

I am trying to get tab-completion working in Yum in CentOS 6 (so I can do something like yum install firefo<TAB> and get back firefox), and I have found many tutorials which say to simply do yum ...
9
votes
9answers
13k views

Package: git-1.7.6.1-1.el5.rf.i386 (rpmforge) Requires: libcurl.so.3

After I run yum install git it shows the error Error: Package: git-1.7.6.1-1.el5.rf.i386 (rpmforge) Requires: libcurl.so.3 You could try using --skip-broken to work around the problem You ...
9
votes
2answers
12k views

how do I install the stock centos repositories?

I have a situation where the stock repo files that should exist in /etc/yum.repos.d/ (like centos-base.repo) are not present. I need to get them installed. I am sure this is simple, but after hours of ...
9
votes
2answers
9k views

Download all dependencies with yumdownloader, even if already installed?

Is there a way to download all dependencies with yumdownloader, even if they are already installed? I'm trying to create a local repo and only want to include the packages we need.
8
votes
4answers
17k views

Unable to Pull EPEL repository Metadata

Installing Nginx on Scientific Linux according this documentation fails: [vagrant@localhost ~]$ sudo su -c 'rpm -Uvh http://dl.fedoraproject.org/pub/epe l/6/x86_64/epel-release-6-8.noarch.rpm' ...
8
votes
3answers
6k views

Transaction check error in installing vim?

I recently updated my fedora to 20 and wanted to install vim.but running sudo yum install vim returned this error: Transaction check error: file /usr/share/man/man1/vim.1.gz from install of ...
8
votes
1answer
4k views

Does yum's --enablerepo option only enable a repo for the current command?

Does yum's --enablerepo option only enable a repository for the duration of the current command? For example if the enabled setting in /etc/yum.repos.d/remi.repo file is set to 0 (disabled) and I ...
7
votes
2answers
69k views

Installing git “sudo: apt-get: command not found”

I am trying to install git. I run the following command: sudo apt-get install git-core git-gui git-doc But receive the following error: sudo: apt-get: command not found What should I do?
7
votes
2answers
6k views

How to install git for CentOS?

I tried several suggestions from this answer but none of them worked. [root@308321 sugar-dev]# yum install git Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ...
7
votes
2answers
1k views

List installed, top-level packages in Fedora

I used to use yum to list all installed packages: yum list installed Now I need to list top level packages only i.e. if a package is a dependency of another, it should not be shown. GNOME's ...
7
votes
2answers
14k views

yum installs kernel-devel different from my kernel version

I am attempting to install the VMWare player in Fedora 19. I am running into the problem that multiple users have had where VMware player cannot find the kernel headers. I have installed the ...
7
votes
2answers
5k views

Is it stable to use epel and rpmforge in the same time?

So after a fresh Scientific Linux 6.3 Desktop install, I: yum install rpmforge-release && yum update and yum install epel-release.noarch then: yum install wine gparted cups-pdf ...
7
votes
1answer
30k views

CentOS - install using yum Apache 2.4

I need Apache 2.4 in CentOS because with Apache 2.2 mod_proxy_wstunnel is not possible. I have tried this, but unfortunately its for RHEL. After installing, I can't execute the Apache 2.4. Can anyone ...
7
votes
1answer
9k views

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 ...
7
votes
2answers
8k views

How to install packages to a custom location in centos6

I have a shared location, let me call it /tp I want to install all my libraries and packages in this location just like the default install. Reason to do this is: I want all the users in the network ...
6
votes
3answers
3k views

When importing a key during a yum installation, where is that key stored?

I'm installing a piece of software for which I had to use a third-party repository. After adding the repository with rpm -Uvh http://[site], I installed with yum install [package]. One of the ...
6
votes
5answers
5k views

How to use SOCKS proxy with yum?

The man page to yum.conf describes several proxy related variables: proxy URL to the proxy server that yum should use. proxy_username username to use for proxy ...
6
votes
1answer
3k views

Can Yum express a preference for x86_64 over i386 packages? [duplicate]

I run a 64-bit version of CentOS5. At the moment, when I run Yum updates or installs, unless Yum is purged of i386 packages prior, it will install i386 packages when x86_64 are available. Is it ...
6
votes
1answer
125 views

How can I put some comment in yum installation list?

Lets say I made a List of installed packages by: rpm -qa > list I want to use this list to re-install those Packages on another System, For Example By: yum -y install $(cat list) But I need ...
6
votes
1answer
3k views

How to force 'yum search' to use local metadata/cache?

A lot of times when I run yum search, it tends first to download the metadata from a repository. How do I force it to only search the local cache? I prefer quick results to accurate data in this case, ...
6
votes
2answers
10k views

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 ...
6
votes
2answers
548 views

How to get files downloaded by yum?

I install a software package on Fedora from the terminal using the command like # yum install live-usb-creator Now at first it downloads some of the packages from online repository and then ...
6
votes
2answers
2k views

yum require an older version of a package as dependency

I have installed TexLive 2012 via the official site and want to install epydoc which depends on an older version. However, when I try to install epydoc which depends on texlive, I get the below ...
5
votes
2answers
1k views

Is there a way to install and remove packages in a single yum command?

Is there a way to add and remove packages at the same time with a single yum command? For example, installing postfix and removing sendmail without running two separate commands/transactions.
5
votes
3answers
4k views

apt-get equivalent of yum localinstall

When using Fedora I usually use yum localinstall as a way to install a rpm obtained outside the distribution repositories. I can't find an equivalent option in the apt-get man page. I'm running Ubuntu ...
5
votes
3answers
12k views

Cannot retrieve metalink for repository: fedora/20/i386

I installed Fedora 20 using the liveOS. While taking the updates I am getting the following result: [root@localhost bioinfo]# yum update Loaded plugins: langpacks, refresh-packagekit Error: Cannot ...
5
votes
1answer
762 views

Why did removing iptables “break” my network access?

To remove iptables i used yum : # yum remove iptables -y But this removed a lot of packages : Remove 262 Package(s) Installed size: 710 M Downloading Packages: Running rpm_check_debug ...
5
votes
1answer
2k views

How do I find package URLs with Yum?

I want to update my system (Fedora) with Yum, but I want to use aria2 to download the packages. There was something in pacman that you could use to get the update URLs (and put all links in a file.) ...
5
votes
4answers
985 views

How to replicate installed package selection from one Fedora instance to another?

I have a Fedora 17 system (A) where I have installed some packages over the time. Now I want to install Fedora 19 on another computer (B) and I want to install the same packages on it. In Debian ...
5
votes
2answers
511 views

Is there an analog of apt-pinning in Fedora?

Apt pinning is a feature that allows to set install priority for a group of packages, determined by a number of attributes, such as package version, repository, distro version, etc. See man ...
5
votes
2answers
4k views

CentOS: Install packages listed in a text file?

I have an existing CentOS installation which I'd like to install extra packages to. The packages to be installed were supplied to me in a list, one package per line, which looks like: .... ...