Tag Archives: rpm

How to list rpm packages from certain repository

Usually, rpm –queryformat can be used to generate all sorts of rpm package listing. You could, for example, use the vendor tag to separate the packages that are tagged with RPM Fusion from the list of all installed packages (rpm -qa): Unfortunately, there is no 1:1 mapping between rpm’s vendor tag and the install repository. In some cases, the vendor… Read more »

Changing rpmbuild working directory

      3 Comments on Changing rpmbuild working directory

Usually, rpmbuild related variables are set in ~/.rpmmacros. To change the current working directory, one could simply alter the default settings: This would change rpmbuild’s working directory on a per-user basis. Sometimes it’s quite convenient to keep the default setting and change the working directory on a per-project basis: To use the current directory as working directory, one could invoke… Read more »

Visualizing rpm dependencies with Graphviz

Sometimes, rpm dependencies get rather complex. It’s not always easy for an rpm maintainer to keep track of the runtime requirements of his package and therefore, huge rpm dependency trees develop. And it’s even more difficult so see which packages get pulled by yum, because only a tiny part of those are actually listed as requirements in the spec file…. Read more »

Dealing with .rpmnew and .rpmsave files

      1 Comment on Dealing with .rpmnew and .rpmsave files

When an upgrade includes changes to a default configuration file, the package will write either a .rpmnew or a .rpmsave file instead of overwriting the configuration file on your system. Which file a package creates is up to the discretion of the package maintainer. From “Dealing with .rpmnew and .rpmsave files” By Bruce Byfield: An .rpmnew file contains the new… Read more »

Cleaning up locally-installed RPMs with package-cleanup

Sometimes, packages you never actually use get installed as dependency by yum (or even during initial installation by anaconda). package-cleanup is a great tool that helps you find packages not required by other packages. It it part of the yum-utils package which can easily be pulled with yum: 1. Find and review “unused” packages You can find packages not required… Read more »