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


Groups > linux.debian.user > #221828

Re: cleanly getting rid of manually installed transitional packages due to rename

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: cleanly getting rid of manually installed transitional packages due to rename
Date 2020-04-22 23:10 +0200
Message-ID <zYuN5-23s-39@gated-at.bofh.it> (permalink)
References <zY2QN-1Tx-5@gated-at.bofh.it> <zYk1k-3Wg-9@gated-at.bofh.it> <zYkNH-4rN-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed 22 Apr 2020 at 12:22:24 (+0200), Vincent Lefevre wrote:
> On 2020-04-22 12:39:35 +0300, Andrei POPESCU wrote:
> > You might want to file a wishlist bug against 'apt' to request such a 
> > feature (if not requested already). A reliable implementation probably 
> > requires a new package field, something like:
> > 
> >     Package: foo
> >     Superseded-By: bar
> 
> Indeed, that would be a solution. Before posting, I initially searched
> on the web for anything related, but I could not find. With a specific
> search in the Debian BTS, I could now find such a wishlist in dpkg:
> 
>   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=33344
>   Add new field to track package rename/split/merge
> 
> filled in 1999! It has 2 merged bugs, also very old.

For trivial renames, which yours looks like, as do those I've done,
it would be pretty easy to script. I've never made the effort,
because it's not something I do frequently enough, usually just once,
soon after I start running a new release on the first computer. Then
I adjust the list of packages used for the rest of them. Manually:

 $ apt-get -s purge pdftk
 The following package was automatically installed and is no longer required:
  pdftk-java
 Use 'apt autoremove' to remove it.
 # apt-mark manual pdftk-java
 pdftk-java set to manually installed.
 $ apt-get -s purge pdftk
 # apt-get purge pdftk
 Removing pdftk (2.02-5) ...

(Routine output edited out.) The first step can list more packages,
so checking the Depends line for the original package should show
which is the replacement.

Obviously there are more involved cases, and the thread that I assume
you've read discusses some of these, and the complications that arise
with trying to automate it. I usually take the opportunity to review
the packages concerned and decide for myself what to install/keep.

https://lists.debian.org/debian-devel/2009/09/msg00687.html

Cheers,
David.

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


Thread

cleanly getting rid of manually installed transitional packages due  to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-21 17:20 +0200
  Re: cleanly getting rid of manually installed transitional packages  due to rename nito@dismail.de - 2020-04-21 17:50 +0200
    Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-21 18:00 +0200
      Re: cleanly getting rid of manually installed transitional packages due to rename deloptes <deloptes@gmail.com> - 2020-04-21 21:10 +0200
        Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-22 01:30 +0200
          Re: cleanly getting rid of manually installed transitional packages due to rename deloptes <deloptes@gmail.com> - 2020-04-22 08:40 +0200
            Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-22 10:10 +0200
              Re: cleanly getting rid of manually installed transitional packages due to rename deloptes <deloptes@gmail.com> - 2020-04-22 22:30 +0200
            Re: cleanly getting rid of manually installed transitional packages  due to rename Jonathan Dowland <jon+debian-user@dow.land> - 2020-05-14 11:20 +0200
  Re: cleanly getting rid of manually installed transitional packages  due to rename Sven Joachim <svenjoac@gmx.de> - 2020-04-21 19:10 +0200
  Re: cleanly getting rid of manually installed transitional packages  due to rename Andrei POPESCU <andreimpopescu@gmail.com> - 2020-04-22 11:40 +0200
    Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-22 12:30 +0200
      Re: cleanly getting rid of manually installed transitional packages  due to rename David Wright <deblis@lionunicorn.co.uk> - 2020-04-22 23:10 +0200
        Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-23 03:00 +0200
          Re: cleanly getting rid of manually installed transitional packages  due to rename David Wright <deblis@lionunicorn.co.uk> - 2020-04-23 21:10 +0200
            Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-24 21:10 +0200
              Re: cleanly getting rid of manually installed transitional packages  due to rename David Wright <deblis@lionunicorn.co.uk> - 2020-04-25 06:50 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-04-25 21:50 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename David Wright <deblis@lionunicorn.co.uk> - 2020-04-28 17:30 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-05-06 12:40 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename David Wright <deblis@lionunicorn.co.uk> - 2020-05-08 01:30 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename Vincent Lefevre <vincent@vinc17.net> - 2020-05-12 12:20 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename David Wright <deblis@lionunicorn.co.uk> - 2020-05-13 17:50 +0200
                Re: cleanly getting rid of manually installed transitional packages  due to rename Andrei POPESCU <andreimpopescu@gmail.com> - 2020-05-14 07:50 +0200

csiph-web