Yum command to list files in package
I have not included the full output here as I have hundreds of packages installed on my system, however this small snippet should give you an idea of what to expect.
When piped into the grep command this becomes extremely powerful as it allows us to search for a specific package to see if it is installed. In the above example we learned how to list currently installed packages on our Linux system with the yum command, now we want to be able to query a repository and list its available packages instead. As we can see we have over packages currently installed, however in the repository there are almost packages in total for us to install.
Packages that are related to each other may be grouped together into a package group. This allows us to install, update, or remove the package group which is actually made up or many other individual packages.
We can optionally exclude a specific package from update, installation or removal with the -x command which will exclude that package. With the -R option we can specify a maximum random time in minutes that yum will wait before executing the command, somewhere within this time period will be selected at random.
As you have seen in the above examples, the yum command can provide quite a bit of output. In the example below we completely uninstall a package with yum and have no messages output. In the below verbose example we can see additional information in the output that was not previously available. This guide has covered how to use yum with 25 different examples in which you can practically put the yum command to use.
How do I find which repo contains a package I want? Short of enable and try to search each one. Is there a way to search for a package on all the repos including disabled ones?
Website URL. Notify me of follow-up comments by email. Notify me of new posts by email. Email Address. RootUsers Guides, tutorials, reviews and news for System Administrators. How To Use yum — Command Examples 1. Update New Package From Repository In the previous example we have been provided with a list of packages that currently have package updates available. Note that we do not have to run check-update prior to this. Add New Repository We can specify a new repository by manually editing or creating a new.
How to list the contents of a package using YUM? Ask Question. Asked 13 years, 3 months ago. Active 3 years, 5 months ago. Viewed k times. Lorin Hochstein. Lorin Hochstein Lorin Hochstein Without the -p param rpm -ql packageName you don't need to know the location of the rpm file. It's pretty much the easiest way to get "all the" path's of a package. For some example output see my answer. Unfortunately that only works with installed packages — WallStProg.
Add a comment. Active Oldest Votes. Katie Note that this command will fail silently if the named package doesn't actually exist. To search faster for installed packages, include --installed option. Should be added as a feature of yum, IMO. Show 1 more comment. Now you can use the repoquery command with the -l option to list files in a package.
This site uses Akismet to reduce spam. Learn how your comment data is processed. Username or Email Address. Remember Me. Sign Up For Our Newsletter. Linux Quick Tips.
0コメント