By KFSys
System Administrator
The apt-get changelog
command remains a valuable tool for system administrators and developers who want to stay informed about package updates. It provides a concise and detailed changelog of any package directly from the package repository, highlighting changes, bug fixes, security patches, and new features between versions.
Even though the apt
command has simplified package management, apt-get changelog
(and its newer equivalent, apt changelog
) is still actively functional and useful. The primary reason is that viewing the changelog helps users understand what has changed between package versions, especially when running updates that may affect important system components or application behavior.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Accepted Answer
apt-get changelog
WorksThe command fetches the changelog for the package from the repository’s source and displays it in a readable format. This information is pulled from the package metadata and contains version-specific details, such as:
apt-get changelog
Useful?In a production environment, it is crucial to know what updates are being applied. Running apt-get changelog
allows administrators to understand exactly what a new version of a package will do and if any critical issues or patches are included.
Example: If you are about to update a critical service like Nginx or OpenSSL, knowing the specific changes helps in preparing for any potential issues that might arise, such as incompatibility with existing configurations or security vulnerabilities.
After updating a package, if a problem arises, checking the changelog can provide clues. Perhaps a configuration parameter changed, or some deprecated functionality was removed in the update. Knowing what changed helps in diagnosing and fixing issues.
System administrators often need to ensure that systems are updated with security patches. apt-get changelog
provides an easy way to review security patches applied in new versions of software packages.
When running software regression tests on development or production servers, the changelog can show what functionalities might need special testing attention after an update.
Let’s say you are running an older version of OpenSSL and you see that there’s an available update. Before blindly upgrading, you can use:
apt-get changelog openssl
This will display all the recent changes and fixes in OpenSSL, including bug fixes and security patches. You can see if the update includes critical patches or if there are any breaking changes that might affect your services.
Output may look like:
openssl (1.1.1f-1ubuntu2.4) focal; urgency=medium
* SECURITY UPDATE: Fix CVE-2021-23841, CVE-2021-23840
* Fix possible crash in SSL server (CVE-2021-23841)
* Fix NULL pointer dereference during X509 certificate verification (CVE-2021-23840)
This lets you know that the update is addressing security vulnerabilities, so it is likely a good idea to apply it in a timely manner.
apt-get changelog <package_name>
apt-get changelog nginx
This will show you the changelog for the Nginx web server, detailing the latest updates and changes made by the maintainers.
Alternatively, using apt
works in the same way:
`apt changelog nginx
Although newer commands like apt
have simplified package management, apt-get changelog
remains highly relevant, providing vital information for system maintenance, security auditing, and debugging. By knowing what has changed in packages, you can make more informed decisions on whether and how to apply updates in production environments. Whether you are a developer, sysadmin, or just a Linux enthusiast, understanding what has changed between package versions is crucial, and apt-get changelog
offers a convenient way to do that.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.