How to view the update logs of Deb and RPM packages on Linux
GuideWhen a program or library is packaged into a Deb or RPM package, some metadata files are included in the package, one of which is the changelog file, which records the changes of the software package after each update. Therefore, if you want to find out what has changed your installed or updated software package, we can view the Update log (changelog) of the software package ). This article describes how to view the update logs of A Debian-based or Red Hat system software package.View the Deb Software Package Update logMethod 1: apt-get or aptitude
The latest apt-get command can check the Update log of the package and whether the package is installed on your system.
$ apt-get changelog | more
Another command line Package Manager, apittude, has the same options as apt-get. All Debian-based distributions are installed by default, except for Ubuntu Desktop.
$ aptitude changelog | more
One of the major advantages of aptitude is that it complements the ncurses-based user interface.
$ aptitude-curses
You can search for the specified software package by hitting "/" and adding the software package name. Tap "C" to view the Update log of the software package
Method 2: synapticIf you are a desktop user, synaptic has an additional option to view the package Update log-Deb package's graphical package management tool.
Run the following command on the Debian-based system to install synaptic:
$ sudo apt-get install synaptic
After synaptic is installed and loaded, click "Get Changelog" on any installation package description page to view the Update log of the software package.
Method 3 (on Ubuntu): Software-UpdaterAnother GUI Method -- Software Updater is specific to the Ubuntu Desktop. This GUI tool can remind you of updates and installation of any Ubuntu Software. However, you must note that the Software Updater cannot display the update logs of any package like other methods. Run the following command to run Software Updater:
$ update-manager
It displays the Update log of the software package to be installed (not downloaded)
Method 4:/usr/share/docCheck the Update log of the installed software package:
$ zless /usr/share/doc/<package -name>/changelog.Debian.gz$ zless /usr/share/doc/<package -name>/changelog.gz
View the Update log of the RPM packageMethod 1: rpmRun the rpm command to check any installed software packages.
Note: rpm cannot check the update logs of software packages not installed on the system.
$ rpm -q --changelog | more
Method 2: RepoqueryUse the repoquery command to check the update logs of software packages that have not been installed in your system.
Install repoquery
$ sudo yum install yum-utils
Use the repoquery command to view the Update log
$ repoquery --changelog | more
Method 3: yum-changelogInstall the yum-changelog plug-in
$ sudo yum install yum-changelog
Now you can use the yum command to view the Update log of a single package before/after the installation package.
$ yum changelog
This changelog plug-in has additional options for custom viewing of update logs.
View the update logs of the last five packages
$ yum changelog 5
View the Update log of the package since January 1, June 1, 2015
$ yum changelog "2015-06-01"
Method 4 (on Fedora): dnfAll three or more methods work on Fedora, unless you use dnf as the default Package Manager.
Dnf does not yet provide an option to check the Update log of a single package. However, you can use dnf to display update reports for any important bug fixes, security patches, and enhancements (similar to Ubuntu software updates. As shown below
$ dnf updateinfo info | more
Original reprinted address (linux on this learning): http://www.linuxprobe.com
Translator: Ye Zi