During an attempt to update Git on a CentOS Linux server via the Yum Package manager this evening I ran into a dependency error. The newer Git package has a dependency of Git-CVS package which also has a dependency of CVSPS package. So initially when I installed Git it didn’t require these packages so I never ran into an error. Below I show the error displayed when attempting to upgrade git via yum followed by how I resolved the issue installing the EPEL repository.
The Yum, or Yellowdog Updater Modified, is a great package manager if you are familiar with how to use it. If you have a bunch of repositories activated it can be useful to know what packages are available via a specific repository. It is possible to install RPM packages via a specific repository which if another package you are installing requires a specific version of a package this can be useful. Below are a couple examples of using the “yum list” command.
Yesterday I needed to upgrade a single application on CentOS Linux. First I figured out that the application was part of the coreutils RPM package which is currently only available up to version coreutils 5.97-23 on CentOS. The current coreutils package is already up to coreutils 8.5 and upgrading coreutils is near impossible on CentOS because of other package requirements that it needs. Below are instructions on how to download the coreutils source, build the coreutils applications in a new directory, and then upgrade one application.
Earlier today I was upgrading some packages on a CentOS Linux server and was curious what applications were actually installed with the coreutils RPM package. I knew that this was one of the main RPM packages that had a ton of various applications installed with it however I was not sure specifically which ones. Below are some examples of how to use RPM to find out exactly what is installed with a specific RPM package.
Earlier today I ran into an issue where I needed an updated version of “sort” on a server running CentOS 5.4. Since sort is not a package available via yum I needed to first find out what Linux RPM package includes sort to see if there was an upgrade available. To find this out you can use yum as shown in the example below.