I'm running Ubuntu and I have a deb file installed. I've made deb packages before, so I know there is a debian changelog (debchange). Is there anyway to see the debian changelog for any package that I have installed? Assume I don't have access to the deb source file for this package, and I don't have the deb file available. I am able to install extra packages if needed.
Alternatively if the deb is also in the repository and you want to know older versions changelog, you can use
apt-get changelog package
to read all the changelog. For example for openssl:apt-listchanges
is a nice package to have around, but without having a deb file around your best bet most probably is to read the Debian changelog from /usr/share/doc/somepackage/changelog.Debian.gz.Create a shell function with:
To extend on Janne Pikkarainen's answer, here is an alias that can be used to read the changelog.Debian.gz for any given package:
It can be used like so:
Please note however that this is a terribly hackish solution and is not recommended under most circumstances. A function or standalone script is a much better solution.
Here is a function that reads all available changelogs for PACKAGE:
Here is a function that prints a list of all available changelogs for PACKAGE and queries the user to select which one to read:
In Ubuntu 18.04+, the modern version of
apt
can do this (as opposed toapt-get
):