User Tools

Site Tools


rpm_general

Query Packages

Show current package installed for a service

rpm -qa package

Find Configuration files

Find configuration files associated with a package

rpm -qc package

Package Install Date

rpm -qa --last
rpm -qa --qf '%{INSTALLTIME} %-40{NAME} %{INSTALLTIME:date}\n' | sort -n | cut -d' ' -f2-
That queries all your installed RPM packages (rpm -qa) and prints them using a format (–qf) with the time of installation first in seconds since the epoch(%{INSTALLTIME}), then the name of the package in a 40 character field, left justified (%-40{NAME}), then the installation time as a date and time (%{INSTALLTIME:date}). The result is sorted by the first time field, then that time field is removed.
Source: http://superuser.com/questions/366380/how-to-list-recent-yum-updates



rpm_general.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki