How to view the update logs of Deb and RPM packages on Linux

Source: Internet
Author: User

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: synaptic

If 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-Updater

Another 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/doc

Check 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: rpm

Run 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: Repoquery

Use 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-changelog

Install 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): dnf

All 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.