[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apt Changelog



Hi,

On Thu, Apr 08, 2021 at 10:33:44AM +0100, Gary wrote:
> I am using apt on Raspbian and when I type "apt changelog apt", it fails to
> show me the changelog of the package. It only works if it is in the package
> cache in /var/cache/apt/archives.

You probably mean "works if the candidate version is also the currently
installed version" (aka: no update for this package available).

In that case apt uses the changelog as found on your disk in (e.g.)
/usr/share/doc/apt/changelog.gz

apt doesn't extract the changelog from deb files, locally or remotely.


> I am guessing that this behaviour is hardcoded - maybe apt could inspect
> /etc/os-release and pick an appropriate action based popular distros.

First of all, this requires that the distro provides an online place
where the changelogs can be downloaded from. I don't know if Raspbian
has such a place.

If they have such a place that can be use they can indicate it to apt in
the Release file of the repository. Debian has e.g.:
Changelogs: https://metadata.ftp-master.debian.org/changelogs/@CHANGEPATH@_changelog

This can also be set (mostly for testing) via an apt config options, see:
apt-config dump --no-empty Acquire::Changelogs
which still carries the values used before the Release files of Debian
and Ubuntu indicated the respective places.


I have no contact with Raspbian, so I can't help you get in touch with
them. Feel free to forward this reply to them though, and if they have
further questions how to make their repository(s) work with apt they can
ask here.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: