Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #269699

Re: After upgrade, what do you do about "removed" and "obsolete" packages ?

From "Thomas Schmitt" <scdbackup@gmx.net>
Newsgroups linux.debian.user
Subject Re: After upgrade, what do you do about "removed" and "obsolete" packages ?
Date 2024-05-29 18:30 +0200
Message-ID <IJulz-gF8f-3@gated-at.bofh.it> (permalink)
References <IJamR-gtcA-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

i wonder why none of the electricians on this list has an anecdote to
share about dealing with "obsolete" packages after upgrade.
No triumphs, defeats, or global catastrophes ?


I wrote:
> > https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.h
tml#purge-removed-packages
> > What does "[residual-config]" mean ?

Marco Moock wrote:
> Packages include system-wide configuration files. If packages are
> removed, this configuration will not be deleted. You need to purge such
> packages to remove it.

So the smaller list of packages can be dealt with what the upgrade
instructions propose:
  apt purge '~c'


There remains the list of 220 "obsolete" packages.

> > https://www.debian.org/releases/stable/amd64/release-notes/ch-upgrading.en.html#obsolete

> Packages have dependencies. Those will be marked as automatically
> installed. They can be removed if no other package depends on them.

But several of those packages were surely installed manually by me via
dpkg -i after being made made as descibed in
  https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#s-common-building
The predicate "obsolete" is not the same as "automatically installed".
I understand that obsolete means having no successor package in the
upgraded Debian release.

How could i get a list of only the automatically installed obsolete
packages ?
(I still did not find any documentation about the '~c' or '~o' with
"apt list".)


> Be aware: If you install software beyond apt/dpkg that depends on files
> in installed packages, you need to mark them as manually installed to
> avoid being removed by autoremove.

Google leads me to apt-mark for that purpose.
But i am not sure whether the commercial package which i have to keep
will be preserved with "apt autoremove".
Is there a way to do a dry run which only tells what would happen if i
were more courageous ?


Have a nice day :)

Thomas

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-05-28 20:40 +0200
  Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Marco Moock <mm@dorfdsl.de> - 2024-05-28 21:10 +0200
    Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? The Wanderer <wanderer@fastmail.fm> - 2024-05-29 04:30 +0200
    Re: After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-05-29 18:30 +0200
      Re: After upgrade, what do you do about "removed" and "obsolete" packages ? Mike Kupfer <kupfer@rawbw.com> - 2024-05-29 19:10 +0200
      Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Max Nikulin <manikulin@gmail.com> - 2024-05-29 19:20 +0200
        Re: After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-05-30 11:30 +0200
          Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Florent Rougon <f.rougon@free.fr> - 2024-05-30 11:50 +0200
            Re: After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-05-30 12:40 +0200
              Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Florent Rougon <f.rougon@free.fr> - 2024-05-30 14:10 +0200
              Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Curt <curty@free.fr> - 2024-05-31 18:20 +0200
                Re: After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-05-31 19:50 +0200
                Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Florent Rougon <f.rougon@free.fr> - 2024-06-01 01:00 +0200
                Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Florent Rougon <f.rougon@free.fr> - 2024-06-01 01:20 +0200
                Re: After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-06-01 10:10 +0200
                Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? songbird <songbird@anthive.com> - 2024-06-01 14:20 +0200
          Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? Max Nikulin <manikulin@gmail.com> - 2024-05-30 18:50 +0200
            Re: After upgrade, what do you do about "removed" and "obsolete" packages ? "Thomas Schmitt" <scdbackup@gmx.net> - 2024-05-30 22:20 +0200
      Re: After upgrade, what do you do about "removed" and "obsolete"  packages ? David Wright <deblis@lionunicorn.co.uk> - 2024-05-30 20:10 +0200

csiph-web