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

learn more… | top users | synonyms

79
votes
2answers
75k 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 [...
67
votes
8answers
129k 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.
44
votes
3answers
70k 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?
34
votes
3answers
57k views

List of installed repositories (yum)

In centos how can I get a list of installed repositories?
32
votes
4answers
59k 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 ...
25
votes
3answers
36k 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 ...
19
votes
4answers
27k 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 ...
16
votes
3answers
25k views

Where are the rpm files after installation using yum?

I'm using Red Hat 5.4. I have installed a package using yum the package was wireshark. However, after it has installed. Where can I find the rpm package? I would like to locate the actual wireshark....
16
votes
5answers
25k 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, ...
16
votes
4answers
63k 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 ...
13
votes
5answers
33k 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. 12345....
11
votes
7answers
6k 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 ...
10
votes
2answers
23k 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 ...
9
votes
4answers
17k 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?
9
votes
2answers
57k 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 ...
8
votes
1answer
31k 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.
7
votes
3answers
17k views

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

A command that can be run by an unprivileged user is preferred.
7
votes
3answers
15k 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 ...
7
votes
1answer
2k 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 ...
6
votes
3answers
2k 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
5answers
24k 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 error. Another app is currently holding the yum lock; waiting for it to exit... I keep killing the ...
6
votes
3answers
15k views

Install OpenCV in CentOS

I am trying to install OpenCV in CentOS 6. When I run the command [root@cosmas opt]# sudo yum install libtiff4-dev libjpeg-dev libjasper-dev it returned the follow: Loaded plugins: fastestmirror, ...
6
votes
4answers
3k 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.
6
votes
1answer
8k 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 ...
6
votes
2answers
10k 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 ...
6
votes
1answer
13k views

download local copy of CentOS yum repository for offline use

I have a CentOS 5.6 machine set up on a private network without public internet access. In the interest of time and frustration, I would prefer to be able to install packages using Yum as I would if ...
5
votes
4answers
18k 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 ...
5
votes
3answers
2k 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
2answers
15k 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 ...
5
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?
5
votes
2answers
9k 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: ...
5
votes
1answer
8k views

How to list recent yum updates

Last night I have updated one of my RedHat systems from 6.1 to 6.2. There were a few hundred updates. How can I list the recent updates that was applied to my system? I have tried yum list recent but ...
5
votes
2answers
12k views

CentOS - Yum doesn't update anymore?

I've been trying to use yum now, but for some reason, not even the search work anymore. I even tried putting packages I already downloaded in the search criteria and is the same. [root@AMDFX03 ...
4
votes
1answer
9k 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
3answers
6k 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
1answer
4k 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 ...
4
votes
2answers
1k 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 wireshark....
4
votes
3answers
23k 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 ...
4
votes
1answer
749 views

Upgrading glibc in centos 6.6

My server is using glibc-2.12.x. when I install certain packages it gives an error.Dependency not found glibc-2.14 or above is required.When I try using yum install glibc* it says server is already ...
4
votes
2answers
4k 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
2answers
206 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
15k 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
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 v8::Handle<v8::...
3
votes
1answer
15k 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
5k 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
2answers
1k views

How does yum dependency resolution work?

If multiple packages satisfy a dependency for a package being installed, how does yum choose which one to automatically install? Can I force it to let me pick?
3
votes
1answer
713 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
3answers
1k views

How do I find out which repository a package was installed from in CentOS?

When you use yum info to find details for a selected package, it lists the repo as "installed". That's all well and good, but for installed packages, I want to know which repository it is installed ...
3
votes
2answers
128 views

Yum doesn't list a package I'd like, now what?

I'm Linux ignorant. We're using CentOS and I have a need to install something called git-up and I understand that package managers are how you install everything onto Linux. CentOS has yum but the ...
3
votes
2answers
5k views

Why is my yum update failing?

Why is my yum no longer working? It was previously working fine. But seems to have inexplicably stopped working. FYI, I'm running this on Centos system that is running in VirtualBox on my MacBook Pro. ...