It only takes a minute to sign up. Connect and share knowledge within a single location that is structured and easy to search. That is not I wanted. Instead I would want to accurately check if bind core package has been installed. There's a much easier way of issuing this query: rpm -qa grep bind or rpm -q bind.
The former is best if you're not completely sure of the package name. Parsing the results of this command is the most complete answer. You'll need to know the exact package name. The best one liner I've come up with to do this which is great for using quickly in scripts is:. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. How to accurately check if package is installed in yum? Ask Question. As Siem has said, they would have installed as root or using sudo. Not sure how I forgot to mention 'yum history' in the above post.
You can most likely get the information you need using the following:. This will give you the logged in user that executed the transaction, so if they used sudo to switch to root for the install you should still be fine. This command will return a list of transactions, you can get further information on the specific transaction using.
So the contents of these files get dumped into the system and RPM maintains a database of what packages it has installed. The RPM "database" is located in this directory:. The rpm files themselves are downloaded and then installed. Once these files are installed, they are tracked by the rpm database. To see where the files for a particular rpm were installed, you can run rpm -ql. Shows the first ten files installed by the bash rpm. That being said, rpms also contain pre and post scripts and some poorly built packages might drop files that wouldn't get tracked in the rpm database.
If that wasn't what you were asking, yum can cache rpms when downloading for an install. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Collectives on Stack Overflow. Learn more. Asked 5 years, 8 months ago. Active 3 years ago. Viewed 64k times. I could simply ignore it or suppress it, but I was curious if there was a better way?
Improve this question. Community Bot 1 1 1 silver badge. Derek Elder Derek Elder 73 1 1 gold badge 1 1 silver badge 8 8 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Johan Godfried Johan Godfried 5 5 silver badges 12 12 bronze badges. It's okay to suppress this warning in your case.
Steve Kehlet Steve Kehlet 5, 5 5 gold badges 34 34 silver badges 39 39 bronze badges.
0コメント