Software package manager that installs, updates, and removes packages on RPM-based systems. yum stands for Yellowdog Updater, Modified.

learn more… | top users | synonyms

41
votes
2answers
26k views

What is the difference between yum, apt-get, rpm, ./configure && make install?

I am new to Linux and am running CentOS. I have come across four ways to update or install software. So far, I've seen: yum install [program] apt-get install [program] rpm -i [program].rpm wget ...
24
votes
7answers
27k views

How to Install gcc 4.7.x/4.8.x on CentOS

What would be the easiest way to install gcc 4.7.x/4.8.x on a system with CentOS 6.2+? The default RPM package contains an older version of gcc.
15
votes
4answers
39k views

How do I add a apt-get repository without editing /etc/apt/sources.list?

I want to add a repository to apt-get (without potentially messing up /etc/apt/sources.list) through the user of a script. This script may run multiple times so I can't just append the entry each ...
14
votes
2answers
19k views

How to get list of dependencies of non-installed RPM package?

apt-cache show <package> shows also it's dependencies. yum info <package> does not show dependencies, but it obviously know them. How to ask yum for dependencies of specified package?
14
votes
5answers
19k views

Installing a specific package version with yum

I have a Fedora system with Postgres version 8.3 and I want to downgrade to 8.2 because of a compatibility issue. I've been using yum for everything, but it's my first time with this package manager, ...
12
votes
2answers
13k views

yum hangs and won't respond

I am running yum check-update and it freezes after a 2 lines of output: Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile I'm not sure what is happening. The last things I ...
10
votes
2answers
16k views

How do I downgrade packages easily with Yum?

Apparently, Fedora's yum has the ability to downgrade. I find this useful because abhorrently they feel they need to break NetworkManager on a stable upgrade. In multiple ways. How do I downgrade ...
10
votes
3answers
11k views

How to view history of Yum commands (update, install, remove)?

I'm seeing some errors in my apache logs and they may (or may not) be related to some packages that I recently installed/removed using Yum. Is there a way to view the history of Yum packages that ...
8
votes
2answers
14k views

yum install gcc-g++ doesn't work anymore in CentOs 6.4

Today installed CentOs 6.4 fresh new on my workstation. I wanted to install g++. With my surprise I didn't succeed by using yum install gcc-g++ The thing is that even by doing a search I don't ...
8
votes
5answers
10k views

How do I get yum to see updates to a local repo without cleaning cache?

I have set up a local yum repository which I use to install test builds. For the testing purposes, my packages are versioned by <svn version number>.<date>.<time> (e.g. ...
8
votes
7answers
4k views

How do you track which packages were installed on Fedora (Linux)?

(This question is very similar to 6338. It was suggested that it be split from it as Fedora and Ubuntu/Debian are different enough to warrant different answers.) As I use any Fedora setup I ...
6
votes
3answers
1k views

In yum, what is presto?

When I do a yum install or a yum update, sometimes I get this Loaded plugins: presto, refresh-packagekit telling me that the packages are being updated. What is presto?
6
votes
2answers
21k views

Upgrading PHP 5.3.3 to 5.4.4 in CentOS 6.4

I'm using CentOS 6.4 (centos-release-6-4.el6.centos.10.x86_64). I'm trying to upgrade the php version from 5.3.3 to 5.4.4 by using: yum upgrade php-mysql php-devel php-gd php-pecl-memcache php-pspell ...
6
votes
1answer
1k views

Why does Software Update and Add/Remove Software claim all packages are untrusted?

About two days ago, Software Update started asking me for me root password in order to update packages. It gives me a dialog box saying: The software is not from a trusted source. Do not update ...
5
votes
3answers
8k views

List of installed repositories (yum)

In centos how can I get a list of installed repositories?
5
votes
3answers
5k views

How to check what packages are installed on a RHEL5 system?

A command that can be run by an unprivileged user is preferred.
5
votes
2answers
976 views

Yum- disable database update on package install

I'm using Fedora 15 and every time I try to install something with yum, yum tries to update the repository database. For most people this would be great and handy, but I'm stuck behind super slow ...
5
votes
1answer
3k views

What is the technical differences between “update” and “upgrade” with yum?

I frequently use the following when updating/upgrading RPM-based distros (CentOS, RHEL, and Fedora in my case): yum -y update && yum -y upgrade However, I'm not sure exactly how the two yum ...
5
votes
1answer
4k views

How to use yum to reinstall all dependencies of a given package?

So I have a package that I am pretty sure that I removed part of one of its dependencies when removing something(as in rm). Long story. Basically what I want to do is have yum re-install the package ...
4
votes
5answers
3k views

Node.js from yum on Fedora fails to start with v8 symbol error

I installed the nodejs package on Fedora 16 this way: # yum install nodejs But it crashed on startup when run with no arguments: $ nodejs nodejs: ../src/handle_wrap.cc:65: static ...
4
votes
2answers
6k views

Where can I find out where a package has been installed to?

Fedora 14 xfce I have installed a package using yum install package-name. However, I can't seen to find out where it has been installed to. Is there any command that will tell me what directory the ...
4
votes
4answers
9k views

Another app is currently holding the yum lock; waiting for it to exit

I'm trying to install wireshark on Fedora(latest version with gnome3) and I keep getting the above error. I keep killing the offending process after finding it's pid using "ps aux | grep yum", but ...
4
votes
1answer
4k views

RHEL5.5 switch to CentOS repositories?

I was given a VM for a RHEL5.5 machine but I do not have a RHN subscription. I get this warning when using yum: bash-3.2$ sudo yum update [sudo] password for streamsadmin: Loaded plugins: rhnplugin, ...
4
votes
1answer
1k views

Yum commands cheat sheet for Macports users

What are the equivalent yum commands of the following MacPorts port commands? search self-update installed (list) outdated (list) Are some things completely different from MacPorts?
4
votes
1answer
6k views

How to completely uninstall a package (including all extra files that came with it) using yum (or rpm)?

When I do yum remove, it sometimes keeps a package's configuration files. Is there anyway to remove a package completely, without keeping any file that belonged to the package? I am running CentOS.
4
votes
1answer
5k views

Where does yum save the rpm's it downloads?

Is there a temporary folder I can find the RPM's that yum downloads to install programs? During an installation yum shows the exact name of the RPM file but I don't know how to find it. How can I ...
4
votes
3answers
806 views

Installing Fedora 20 repos

I have recently installed Fedora 20 on my laptop. For the first thing, I tried to add Rpmfusion , Russianfedora to it; but it was failed. In the terminal I entered this: su -c 'yum localinstall ...
4
votes
2answers
725 views

How can I get Wireshark with a GUI on my EC2?

I have an Amazon EC2 machine that I'd like to run Wireshark on, using X forwarding. Unfortunately, the only Wireshark packages found with $ yum search wireshark are: wireshark-devel.x86_64 ...
3
votes
2answers
195 views

deleting /bin entries in linux

I have installed CentOS. I want to remove bzip2, so I enter this command in the shell: yum remove bzip2 bzip2-libs Then nearly 500 packages were removed and I can't enter any command. For example: ...
3
votes
4answers
12k views

How to install jdk with yum on Fedora 17?

I want to install jdk by yum on Federa 17 and using : su -c 'yum install java-1.6.0-openjdk' But it show "no available package". How can I do to install it ?
3
votes
1answer
8k views

How to get `mail` on a CentOS 6 server (running postfix)

On my old server, and most other devices I have run, there is a provided mail program. On my new CentOS 6 server, running postfix as the MTA, I cannot send command-line email via mail - the tool is ...
3
votes
4answers
2k views

Default path for installed binary?

By doing yum install vlc I have installed the vlc player on my system. Now I want to know where the binary of vlc was installed. So what is the default path for installation in Fedora Linux?
3
votes
1answer
310 views

What's the rpm/yum equivalent of `aptitude why`?

On .deb managed systems one can use $ aptitude why <package> to find out what installed package required the installation of <package> for example: $ aptitude why python i xdiagnose ...
3
votes
1answer
2k views

CentOS: How to install latest emacs version with YUM

OS: CentOS release 4.6 (Final) I am trying to install the latest emacs which is listed on their website as being v24.3. However, when I try to install with YUM the version is 21.3-19 which is from 10 ...
3
votes
1answer
2k views

How can I install perf, a linux peformance monitoring tool?

I am trying to install perf. I searched online that it is available through http://apt.ubuntu.com/p/linux-tools, but I need apt. I have yum installed, but do not have apt so I tried installing apt via ...
3
votes
1answer
267 views

Package dependency errors while installing mercurial in Fedora

I'm trying to install mercurial in my Fedora 14 using yum and get the following error.help to resolve this. yum --enablerepo=rpmforge --disablerepo=remi --disablerepo=fedora install ...
3
votes
2answers
3k views

Why does yum update fail in CentOS 6.4?

I am using CentOS 6.4 in a corporate lab, and the yum update fails with the below error: I am able to access the same repositories through the browser. [root@LAB1 ~]# yum update Loaded plugins: ...
3
votes
2answers
3k views

How do I upgrade PHP on CentOS and Kloxo?

I need to upgrade PHP so that I can upgrade joomla on my dedicated server. I have: kloxo 6.1.6 php-5.2.17-1 Linux CentOS-55-64-minimal 2.6.18-194.32.1.el5 x86_64 x86_64 x86_64 GNU/Linux I searched ...
3
votes
1answer
401 views

Alternatives to Gentoo Prefix?

Are there any package managers that: work without root privileges, and install packages at a custom location (similar to ./configure --prefix), and install stable packages (unlike Gentoo Prefix ...
2
votes
4answers
9k views

Protected multilib versions error when updating yum in Fedora 16

I have Fedora 16 installed. I'm facing some in issues when updating yum. Error: Protected multilib versions: flash-plugin-11.2.202.233-release.i386 != flash-plugin-11.1.102.55-release.x86_64
2
votes
4answers
5k views

How to specify that Yum should not use proxy for specific domain

Is it possible to specify domain for which yum should bypass proxy configuration ? I'm afraid this is not possible... I read that it was possible to use the environment variable HTTP_PROXY then ...
2
votes
4answers
890 views

Yum : searching for a package with binary name

Is there a way to search a package using the binary name. for example I want to find rpm package for command "ls" then it should be coreutils-6.9-10.4.i586 for example.
2
votes
2answers
3k views

Why Doesn't Yum Clean Up Orphaned Packages?

I recently used Yum (on Fedora 13) to install xmms2. It found some dependencies and installed those as well. Immediately after I installed xmms2, I performed yum erase xmms2, but it uninstalled only ...
2
votes
2answers
343 views

Upgrading Node.JS from tarball of binares when yum-installed version already exists

On CentOS 6.3 64-bit, I've installed Node.JS version 0.6.18 using yum. I have an application that requires Node.JS v0.8.x. The currently stable version of Node.JS available is 0.8.7, which is ...
2
votes
3answers
170 views

How to find out which app yum installs?

I want to install screen and i think i could do yum install screen but i thought i could be smart and run a search first yum search all screen and here is the problem, this results in a huge ...
2
votes
1answer
499 views

Why does ping to google.com or 8.8.8.8 fails

I am using Cent OS 6.4 and it is in a official lab. ping google.com gives the below output and hangs: [root@LAB1 ~]# ping google.com PING google.com (74.125.236.195) 56(84) bytes of data. ping ...
2
votes
1answer
741 views

Installing openssl on RHEL 6.2

Trying to install openssl-devel on RHEL 6.2. yum install openssl-devel And i am getting this error: --> Finished Dependency Resolution Error: Package: glibc-2.12-1.47.el6.i686 (rhel62) ...
2
votes
1answer
261 views

yum/RPM depend on generic package (like “provides” in other package managers)

I'm trying to figure out how to make a package of mine depend on anything that provides "java", but I'm not sure what to even look up. Apparently "yum provides" is a command for finding out which ...
2
votes
3answers
12k views

Unable to remove PHP packages from CentOS, but also unable to update PHP package to PHP 5.3

I have an interesting, albeit infuriating problem with CentOS. I'm trying to configure this server to run a Symfony2 website I've built. The website doesn't work, and I've pinned down the problem to ...
2
votes
3answers
4k views

Why do I get “Failed to set locale, defaulting to C” when using yum?

Every time I run yum install or yum update, I get Failed to set locale, defaulting to C and then other information. How can I avoid getting this warning?