Rpm query package owning file
Describing packages 4. Package groups 4. Listing the files in a package 4. Listing the configuration files for a package 4. Listing the documentation files for a package 4. Listing the state of the files in a package 4. Listing the scripts in a package 4.
Listing what has changed 4. Combining queries 4. Creating custom queries 4. Working With Query Format Tags 4. Querying for Package Information 4. Formatting Arrays 4. Special Formatting 4. Querying for Package Dependencies 4. Querying for File Information 4. Other Query Format Tags 4. Other queries 4. Getting Information on Package Files 4. Querying Package Files Remotely 4. The RPM system includes commands to query this database to find out which packages are installed and to provide quite a few details about these packages.
Both types of query are important:. Query the RPM database to see what is installed, or not installed, on your system. Query package files to see what the files require, as well as what the files provide. In addition to querying the RPM database, you can use the database to verify packages. Since this database is so important to the management of your Linux system, this chapter covers how to back it up, as well as how to repair a damaged RPM database.
Querying the RPM Database. In Chapter 3, Using RPM , you saw that the rpm command usually takes one major command-line option to tell it the operation to perform and a myriad of command-line options to customize the operation.
The rpm command may also take the name of one or more RPM package files or the name of one or more installed packages. For example, the rpm —i command performs an installation operation, and the rpm —U command performs an upgrade. For querying the RPM database, the major command-line option is —q , short for query. This option tells the rpm command to query the RPM database. You can also use the long option --query. In the last few chapters, you've used the —q option with the rpm command to query just for the presence or absence of installed packages.
You can expand the -q option to perform a wide array of queries to find out information about the packages installed on a Linux system. Querying packages. Shell Script Variables. Shell Script Logic. Shell Script Looping. Shell Script Debugging. Perl Basics. Perl Variables. Perl Arguments. Perl Logic. Perl Looping.
Perl and Files. Perl Pattern Matching. Other Linux Topics. Linux Editors 3. Linux and Email 8. Compression and Encoding 8.
Linux Does DOS 3. Managing Linux 5. The Vi Editor. The Emacs Editor. The Pico Editor. Sending Email. Reading Email. Other Mail Commands. Using Pine for Email.
The Pine Inbox. Pine Email Basics. Pine Email Folders. Pine for Power Users. Linux File Compression. Archiving With Tar. Compression With Gzip. Compress and Zcat. Zmore and Zless. Zip and Unzip. Encoding and Decoding. Accesing DOS Files. Accesing DOS Partitions.
Running DOS Programs. Updating Your Linux System. Installing Packages with RPM. Upgrading Packages with RPM. Querying Packages with RPM. Comments - most recent first Please feel free to answer questions posted by others! It was began by Adolf Dassler in Adidas is most famous for their sneakers, and they also manufacture sportswear, toiletries and sports activities routines equipment. I would advise you begin putting on shoes if you should plan to carry out performances while in the long phrase.
Personally I select turf footwear merely because just one you freestyle on concrete you will definitely put on the sole out, and a turf sole lasts longer. You might very well come across it just a little bit tougher to do sole juggles with turf footwear. When you've got any worries about your own personal health or the well being of your little one, you ought to invariably seek the advice of by using a physician or other healthcare specialist.
Please analysis the Privacy Policy and Terms of Use in advance of using this internet site. Sneakers for Football Freestyle tylletext. The first one works best for me. How can I always get that? Thank you. If you want to know what they do, continue reading here. Vi -x "file name"? Is -l? Awaiting your response! Mohammed 25 Sep , Honestly I want to be very grateful to you for all the kindness. You're truly blessed and willingly share your knowledge with humanity. God bless you each moment,each day someone reads your work.
The tutorial is good and very good for beginners. Thank you the more. Regards, Port Forward Podcast. But I want to know in which pachage I got those files??? 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 66 66 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.
Arash Arash 5 5 silver badges 8 8 bronze badges. Using only the rpm utility, this should work in any OS that has rpm: rpm -q --whatprovides [file name] Ref. Tim M. You can do this alike here but with your package.
Sign up or log in Sign up using Google. Sign up using Facebook.
0コメント