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


Groups > linux.debian.user > #162048

Re: removing TexLive Docs packages

From Osamu Aoki <osamu@debian.org>
Newsgroups linux.debian.user
Subject Re: removing TexLive Docs packages
Date 2015-12-23 17:20 +0100
Message-ID <qIUiR-3tm-11@gated-at.bofh.it> (permalink)
References <qILpf-68N-1@gated-at.bofh.it> <qIT3r-2sw-9@gated-at.bofh.it> <qITGa-2Yd-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi,

On Wed, Dec 23, 2015 at 10:27:25AM -0500, The Wanderer wrote:
> On 2015-12-23 at 09:55, Udyant Wig wrote:
> 
> > On 12/23/2015 12:15 PM, Sivaram Neelakantan wrote:
> > 
> >> I installed TexLive recently and during one of the upgrades, the 
> >> entire texdoc package got installed too.  that is humoungous and
> >> I'd like to remove the doc packages alone and also stop future
> >> installs of the same type whenever I Upgrade TexLive.
> > 
> >   An appreciable problem.

I used to worry this when I were on P5 system etc.
Now disk is cheap, so I do not care much. But ...

> >   # To prevent these packages from getting installed later:
> >   # aptitude hold '~ntexlive~ndoc'
> 
> Does this latter actually work?
> 
> I would expect it to use the same hold mechanism as 'apt-mark hold' or
> 'echo "packagename hold" | dpkg --set-selections', and in my experience
> holding a package as not installed does not work; it doesn't even get
> recorded in the package-selection state, and certainly doesn't get
> respected later when another package Depends or Recommends that package.
> 
> If that's been changed, or if there's a mechanism which avoids it and
> does work, I'd be very interested.

I agree.  I tested "hold" on an uninstalled package with aptitude,
nothing happened.

So your option is to use /etc/apt/preferences as described in
apt_preferences(5) where new glob(7) syntax for package is described.

This is not tested but it should be like:

           Package: /^texlive-.*-doc$/
           Pin: release a=*
           Pin-Priority: 10

This glob feature is available from apt (0.8.14)  Apr 2011.

Osamu

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


Thread

removing TexLive Docs packages Sivaram Neelakantan <nsivaram.net@gmail.com> - 2015-12-23 07:50 +0100
  Re: removing TexLive Docs packages Udyant Wig <udyantw@gmail.com> - 2015-12-23 16:00 +0100
    Re: removing TexLive Docs packages The Wanderer <wanderer@fastmail.fm> - 2015-12-23 16:40 +0100
      Re: removing TexLive Docs packages Osamu Aoki <osamu@debian.org> - 2015-12-23 17:20 +0100
      Re: removing TexLive Docs packages Osamu Aoki <osamu@debian.org> - 2015-12-23 17:20 +0100
      Re: removing TexLive Docs packages Sivaram Neelakantan <nsivaram.net@gmail.com> - 2015-12-24 13:50 +0100
        OT: signatures (was Re: removing TexLive Docs packages) The Wanderer <wanderer@fastmail.fm> - 2015-12-24 16:00 +0100
          Re: OT: signatures (was Re: removing TexLive Docs packages) Anthony Mapes <anthonym7009@gmail.com> - 2015-12-24 16:40 +0100
            Re: OT: signatures (was Re: removing TexLive Docs packages) Adam Wilson <moxalt@riseup.net> - 2015-12-26 08:40 +0100
            Re: OT: signatures (was Re: removing TexLive Docs packages) Chris Bannister <cbannister@slingshot.co.nz> - 2015-12-27 01:00 +0100
            Digital signatures Teemu Likonen <tlikonen@iki.fi> - 2015-12-27 09:10 +0100
              Re: Digital signatures Anthony Mapes <anthonym7009@gmail.com> - 2015-12-27 15:10 +0100
                Re: Digital signatures Teemu Likonen <tlikonen@iki.fi> - 2015-12-27 16:10 +0100
          Re: OT: signatures (was Re: removing TexLive Docs packages) Sivaram Neelakantan <nsivaram.net@gmail.com> - 2015-12-25 07:40 +0100
    Re: removing TexLive Docs packages Sivaram Neelakantan <nsivaram.net@gmail.com> - 2015-12-24 13:40 +0100
  Re: removing TexLive Docs packages Doug <dmcgarrett@optonline.net> - 2015-12-23 22:50 +0100
    Re: removing TexLive Docs packages The Wanderer <wanderer@fastmail.fm> - 2015-12-24 03:20 +0100
      Re: removing TexLive Docs packages Udyant Wig <udyantw@gmail.com> - 2015-12-24 05:20 +0100

csiph-web