Improve this answer. Trey Trey 51 2 2 bronze badges. Christian Christian 4, 1 1 gold badge 21 21 silver badges 27 27 bronze badges. Tulio Silva Tulio Silva 11 1 1 bronze badge. Amandasaurus Amandasaurus Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
Signature The signature appears after the lead or identifier section, which marks the file as an RPM file. Like your signature when you sign a check, the RPM signature helps verify the integrity of the package. Instead, it ensures that you have downloaded a valid RPM archive. The signature works by performing a mathematical function on the header and archive sections of the file. The header contains zero or more tagged blocks of data that pertain to the package.
The header contains information such as copyright messages, version numbers, and package summaries. The payload section contains the actual files used in the package. These files are installed when you install the package. To save space, data in the payload section is compressed in GNU gzip format. Once uncompressed, the data is in cpio format, which is how the rpm2cpio command introduced in Section 2. There are two main types of RPM packages: binary or applications and source. A binary RPM has been compiled for a particular architecture.
To run on both systems, you would need two separate packages: one for the Pentium i and one for the ARM. These RPMs are packages that provide the source code for other packages.
Binary RPMs. Binary RPMs hold complete applications or libraries of functions compiled for a particular architecture. These application binary RPMs usually depend on a number of system libraries which are, in turn, also provided by binary RPMs.
If you want to find the related package of a binary or file , we first have to know the full path. If you know the binary, then use the which command to discover where it is stored. Using the find command is another option, but may be less efficient. With the dpkg package management tool we can find the related package.
If you already know the package name, you can quickly look up the files that are installed by a Debian package. Systems running the distributions from SuSE can use the zypper tool to find the link between a file and a package. Got more useful commands to share? Let it know in the comments and we add them to the article. So you are interested in Linux security?
Join the Linux Security Expert training program, a practical and lab-based training ground. For those who want to become or stay a Linux security expert.
Active Oldest Votes. This is an old question, but the current answers are incorrect : Use yum whatprovides , with the absolute path to the file you want which may be wildcarded. Improve this answer. To know the package owning or providing an already installed file: rpm -qf myfilename.
John Kugelman k 65 65 gold badges silver badges bronze badges. This version also works on non redhat based distro's that still use rpm's such as openSUSE — simotek. Each has their own purpose.
Furthermore, yum whatprovides However, rpm -qf Therefore, I propose that the root requirements are functionally equivalent for both methods. Show 2 more comments. The most popular answer is incomplete: Since this search will generally be performed only for files from installed packages, yum whatprovides is made blisteringly fast by disabling all external repos the implicit "installed" repo can't be disabled.
This website is offline! The website does not appear to search for files; only package names with the search term. As the docs says, you can search for executables by their single path name or any file with the absolute path name.
0コメント