How to find which RPM package provides a specific file or library?

How to find which RPM package provides a specific file or library?

Find rpm package which provides a particular binary file or library file. 1. Method 1 : using rpm command. 1. Use below rpm commands to find which rpm package provide a particular file. # rpm -q –whatprovides [file name] For example, to find which rpm package provides /etc/hosts file, use the command below: # rpm -q –whatprovides /etc/hosts

What does a spec file do in rpmbuild?

A SPEC file can be thought of the as the recipe that the rpmbuild utility uses to actually build an RPM. It tells the build system what to do by defining instructions in a series of sections. The sections are defined between the Preamble and the Body.

Which is the final marker in RPM spec file?

The final marker is x86_64 and is our architecture, which is not something we control as a RPM Packager (with the exception of noarch , more on that later) but is a side effect of the rpmbuild build environment, something we will cover in more detail later. In the table below you will find the items that are used in RPM Spec files in the body.

What are the directives for the RPM filename?

There are three “special” directives listed above which are Name , Version, and Release which are used to create the RPM package’s filename. You will often see these referred to by other RPM Package Maintainers and Systems Administrators as N-V-R or just simply NVR as RPM package filenames are of NAME-VERSION-RELEASE format.

How to compile FSArchiver 0.8.6.tar.gz?

To compile the sources, you have to run follow these instructions: First, you have to download fsarchiver-0.8.6.tar.gz . Just save it to a temporary directory. If the compilation does not work, you can just download the static binary, extract it, and copy the binary somewhere on your system (/usr/sbin for instance).

Which is the 32 bit version of FSArchiver?

You can use either the 32 bit version (fsarchiver-static-x.y.z.i386.tar.gz) or the 64 bit one (fsarchiver-static-x.y.z.x86_64.tar.gz). Uninstalling fsarchiver is easy since it only installs one file on your system, which is the compiled binary. To uninstall fsarchiver, just remove /usr/sbin/fsarchiver.

What kind of dependencies does FSArchiver have?

FSArchiver has two kind of dependencies: libraries and file-system tools. Several libraries with their header files are necessary to compile the sources (cf previous section about installation) and to execute the program if it has not been compiled in a static way.