Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #220343 > unrolled thread
| Started by | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| First post | 2020-03-24 02:50 +0100 |
| Last post | 2020-03-29 21:30 +0200 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.user
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: How can I see only the latest change log of packages before update ? David Wright <deblis@lionunicorn.co.uk> - 2020-03-24 02:50 +0100
Re: How can I see only the latest change log of packages before update ? The Wanderer <wanderer@fastmail.fm> - 2020-03-29 20:50 +0200
Re: How can I see only the latest change log of packages before update ? Andrei POPESCU <andreimpopescu@gmail.com> - 2020-03-29 21:20 +0200
Re: How can I see only the latest change log of packages before update ? The Wanderer <wanderer@fastmail.fm> - 2020-03-29 21:30 +0200
| From | David Wright <deblis@lionunicorn.co.uk> |
|---|---|
| Date | 2020-03-24 02:50 +0100 |
| Subject | Re: How can I see only the latest change log of packages before update ? |
| Message-ID | <zNGRA-8mY-1@gated-at.bofh.it> |
On Tue 24 Mar 2020 at 00:35:39 (+0200), Anastasios Lisgaras wrote:
>
> My update/upgrade system script is about that :
> sudo apt update && sudo apt list --upgradable -a && sudo apt
> dist-upgrade -y && sudo apt autoremove -y && sudo apt autoclean -y &&
> sudo apt clean -y
>
> But I want for *each* package that has an update available, before I
> update it to see its changes.
Then you have to split the upgrade command into a download-only part
(-d in apt-get, and I assume it's the same in apt), and the installing
part itself (with no -d).
> I found for that (maybe) two tools :
> * apt-listchanges
> * changelog
>
> 1) The "apt-listchanges" tool I cannot understand how it is used
> ```
> apt-listchanges thunderbird
> apt-listchanges: thunderbird does not have '.deb' extension
> ```
man apt-listchanges says:
apt-listchanges [[options...]] {[--apt] | [package.deb...]}
↑↑↑↑
so you have to give it the actual filename (after the download part,
of course), and not just the name of the package.
> 2) With the "changelog" I got the change logs, but i think i'm not just
> getting the last ones ..
>
> apt changelog openssh-client : https://pastebin.com/raw/15rCqULj
> apt changelog thunderbird : https://pastebin.com/raw/RdfnwtDD
>
> I want to see *only* the *latest* change logs for *each* update
> available package.
This time, the bare package name is sufficient, and by default you get
the installed version's changelog. You have to add options (like those
for the install command) so it can download a different version to
give you the information for packages not already installed on the system.
But, in view of your upgrade script, you obviously don't need
changelog, because apt-listchanges will fit nicely between your
apt -d dist-upgrade and apt dist-upgrade commands.
Cheers,
David.
[toc] | [next] | [standalone]
| From | The Wanderer <wanderer@fastmail.fm> |
|---|---|
| Date | 2020-03-29 20:50 +0200 |
| Subject | Re: How can I see only the latest change log of packages before update ? |
| Message-ID | <zPLap-4YT-17@gated-at.bofh.it> |
| In reply to | #220343 |
[Multipart message — attachments visible in raw view] — view raw
On 2020-03-29 at 14:42, Anastasios Lisgaras wrote:
> On 3/24/20 3:46 AM, David Wright wrote:
>
>> Then you have to split the upgrade command into a download-only part
>> (-d in apt-get, and I assume it's the same in apt), and the installing
>> part itself (with no -d).
>
>> man apt-listchanges says:
>>
>> apt-listchanges [[options...]] {[--apt] | [package.deb...]}
>> ↑↑↑↑
>>
>> so you have to give it the actual filename (after the download part,
>> of course), and not just the name of the package.
>>
>
> Okay, How can I do that for each upgradeable package ?
On my system, when I run
apt-get dist-upgrade
and say "yes" to the list of packages, the following things happen:
* apt-get downloads all the packages, but does not install them yet.
* apt-listchanges kicks in, automatically extracts and/or downloads the
necessary changelogs for all the packages just downloaded, and
presents just the new parts (relative to the already-installed
package version).
* After I exit the pager which displays the changelogs, apt-listchanges
gives me a prompt to confirm whether I want to continue the upgrade
or not.
* If I say yes, the upgrade proceeds. If I say no, apt-listchanges
aborts the upgrade process.
This sounds like exactly what you want, handled purely automatically. Do
you not get this behavior (or a comparable one) with apt-listchanges
installed on your system?
--
The Wanderer
The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man. -- George Bernard Shaw
[toc] | [prev] | [next] | [standalone]
| From | Andrei POPESCU <andreimpopescu@gmail.com> |
|---|---|
| Date | 2020-03-29 21:20 +0200 |
| Message-ID | <zPLDs-5oG-9@gated-at.bofh.it> |
| In reply to | #220680 |
[Multipart message — attachments visible in raw view] — view raw
On Du, 29 mar 20, 14:47:57, The Wanderer wrote: > > On my system, when I run > > apt-get dist-upgrade > > and say "yes" to the list of packages, the following things happen: > > * apt-get downloads all the packages, but does not install them yet. > * apt-listchanges kicks in, automatically extracts and/or downloads the > necessary changelogs for all the packages just downloaded, and > presents just the new parts (relative to the already-installed > package version). > * After I exit the pager which displays the changelogs, apt-listchanges > gives me a prompt to confirm whether I want to continue the upgrade > or not. > * If I say yes, the upgrade proceeds. If I say no, apt-listchanges > aborts the upgrade process. > > This sounds like exactly what you want, handled purely automatically. Do > you not get this behavior (or a comparable one) with apt-listchanges > installed on your system? As far as I recall, by default apt-listchanges displays only NEWS items, not changelogs (which reminds me I should install it on my systems). Kind regards, Andrei -- http://wiki.debian.org/FAQsFromDebianUser
[toc] | [prev] | [next] | [standalone]
| From | The Wanderer <wanderer@fastmail.fm> |
|---|---|
| Date | 2020-03-29 21:30 +0200 |
| Subject | Re: How can I see only the latest change log of packages before update ? |
| Message-ID | <zPLN8-5rV-3@gated-at.bofh.it> |
| In reply to | #220683 |
[Multipart message — attachments visible in raw view] — view raw
On 2020-03-29 at 15:10, Andrei POPESCU wrote: > On Du, 29 mar 20, 14:47:57, The Wanderer wrote: > >> On my system, when I run >> >> apt-get dist-upgrade >> >> and say "yes" to the list of packages, the following things happen: >> >> * apt-get downloads all the packages, but does not install them yet. >> * apt-listchanges kicks in, automatically extracts and/or downloads the >> necessary changelogs for all the packages just downloaded, and >> presents just the new parts (relative to the already-installed >> package version). >> * After I exit the pager which displays the changelogs, apt-listchanges >> gives me a prompt to confirm whether I want to continue the upgrade >> or not. >> * If I say yes, the upgrade proceeds. If I say no, apt-listchanges >> aborts the upgrade process. >> >> This sounds like exactly what you want, handled purely automatically. Do >> you not get this behavior (or a comparable one) with apt-listchanges >> installed on your system? > > As far as I recall, by default apt-listchanges displays only NEWS items, > not changelogs (which reminds me I should install it on my systems). If so, that must be a change in defaults from when I installed it. I don't remember ever adjusting configuration in this regard (although that's not an absolutely conclusive data point, as my memory is not perfect). The man page confirms that, though; it says that NEWS is the default, and this can be changed with the 'which' option. Indeed, my /etc/apt/listchanges.conf includes a line reading 'which=both'. For the OP: you might want to try with that setting, and see whether the results match what you want. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web