Get changelog information from RPM and DEB package

Here is a nice Linux tip: to get change information of some RPM package it’s enough to execute the following command rpm -q --changelog package for example rpm -q --changelog openssh will output something like:


* Fri Mar 03 2006 Tomas Mraz - 4.3p2-4
- allow access if audit is not compiled in kernel (#183243)
@redhat.com>

* Sat Feb 25 2006 Tomas Mraz – 4.3p2-3
– enable the subprocess in chroot to send messages to system log
– sshd should prevent login if audit call fails
@redhat.com>

* Wed Feb 22 2006 Tomas Mraz – 4.3p2-2
– print error from scp if not remote (patch by Bjorn Augustsson #178923)
@redhat.com>

* Sat Oct 30 1999 Damien Miller
– Back to old binary names
@ibs.com.au>

* Fri Oct 29 1999 Damien Miller
– Use autoconf
– New binary names
@ibs.com.au>

* Thu Oct 28 1999 Damien Miller
– Initial RPMification, based on Jan “Yenya” Kasprzak’s spec.
@fi.muni.cz>
@ibs.com.au>

To look through whole output it would be useful to use more or less commands:
rpm -q --changelog /path/to/package.rpm | less

Similar command is available also in Debian: dpkg-parsechangelog. It reads and parses the changelog of an unpacked Debian source tree and outputs the information in it to standard output in a machine-readable form.

SHARE:
nv-author-image

Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *