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


Groups > linux.debian.user > #224250 > unrolled thread

how to: apt --exclude=foo* upgrade

Started bygrumpy@mailfence.com
First post2020-07-01 13:40 +0200
Last post2020-07-01 13:50 +0200
Articles 5 — 4 participants

Back to article view | Back to linux.debian.user


Contents

  how to: apt --exclude=foo* upgrade grumpy@mailfence.com - 2020-07-01 13:40 +0200
    Re: how to: apt --exclude=foo* upgrade grumpy@mailfence.com - 2020-07-01 13:50 +0200
      Re: how to: apt --exclude=foo* upgrade Hans <hans.ullrich@loop.de> - 2020-07-01 14:20 +0200
    Re: how to: apt --exclude=foo* upgrade Greg Wooledge <wooledg@eeg.ccf.org> - 2020-07-01 13:50 +0200
    Re: how to: apt --exclude=foo* upgrade The Wanderer <wanderer@fastmail.fm> - 2020-07-01 13:50 +0200

#224250 — how to: apt --exclude=foo* upgrade

Fromgrumpy@mailfence.com
Date2020-07-01 13:40 +0200
Subjecthow to: apt --exclude=foo* upgrade
Message-ID<AnJfQ-7PS-17@gated-at.bofh.it>
i build my kernels
how can i tell apt to never install a kernel when i upgrade

[toc] | [next] | [standalone]


#224251

Fromgrumpy@mailfence.com
Date2020-07-01 13:50 +0200
Message-ID<AnJpv-7T9-5@gated-at.bofh.it>
In reply to#224250
On Wed, 1 Jul 2020, Greg Wooledge wrote:

> On Wed, Jul 01, 2020 at 01:22:29PM +0200, grumpy@mailfence.com wrote:
>> i build my kernels
>> how can i tell apt to never install a kernel when i upgrade
>
> Remove all Debian kernel packages, including and most especially
> the metapackages such as "linux-image-amd64".
>

thanks
simple
like me :)

[toc] | [prev] | [next] | [standalone]


#224255

FromHans <hans.ullrich@loop.de>
Date2020-07-01 14:20 +0200
Message-ID<AnJSy-8m9-21@gated-at.bofh.it>
In reply to#224251

[Multipart message — attachments visible in raw view] — view raw

Am Mittwoch, 1. Juli 2020, 13:49:02 CEST schrieb grumpy@mailfence.com:
I believe, the best way is just to deinstall package "linux-image-amd64".

So you can let debian the actual debian kernel installed, but it won't 
overwrite and renew the actual kernels at upgrade/full-upgrade.

This has the advantage, you have either an old kernel at hand if something 
goes bad, and you can easily install a kernel from the debian repo
, if needed. It is never a bad idea, to have a working kernel at hand.

When you build your own kernel, take care of the version number, so that will 
not be overwritten by apt (if you build a kernel package of your own and not 
just simply built and install the kernel via a script or manually)

Have fun!

Best regards

Hans

> On Wed, 1 Jul 2020, Greg Wooledge wrote:
> > On Wed, Jul 01, 2020 at 01:22:29PM +0200, grumpy@mailfence.com wrote:
> >> i build my kernels
> >> how can i tell apt to never install a kernel when i upgrade
> > 
> > Remove all Debian kernel packages, including and most especially
> > the metapackages such as "linux-image-amd64".
> 
> thanks
> simple
> like me :)

[toc] | [prev] | [next] | [standalone]


#224252

FromGreg Wooledge <wooledg@eeg.ccf.org>
Date2020-07-01 13:50 +0200
Message-ID<AnJpv-7T9-7@gated-at.bofh.it>
In reply to#224250
On Wed, Jul 01, 2020 at 01:22:29PM +0200, grumpy@mailfence.com wrote:
> i build my kernels
> how can i tell apt to never install a kernel when i upgrade

Remove all Debian kernel packages, including and most especially
the metapackages such as "linux-image-amd64".

[toc] | [prev] | [next] | [standalone]


#224253

FromThe Wanderer <wanderer@fastmail.fm>
Date2020-07-01 13:50 +0200
Message-ID<AnJpv-7T9-3@gated-at.bofh.it>
In reply to#224250

[Multipart message — attachments visible in raw view] — view raw

On 2020-07-01 at 07:22, grumpy@mailfence.com wrote:

> i build my kernels
> how can i tell apt to never install a kernel when i upgrade

There are probably other ways, but my first stab at it would be to just
remove all the installed kernel packages.

Something like

$ apt-get remove $(dpkg -l linux-{image,headers,doc}* | grep ii | cut -d
' ' -f 3 )

will remove all linux-image packages (which contain the actual kernels),
linux-headers packages (which contain the installed kernel headers, for
compiling programs that need to talk to that version of the kernel), and
linux-doc packages (which contain reference documentation for that
version of the kernel). A --dry-run version of this doesn't seem to want
to remove anything else, on my system. Adjust the set of package types
to be dropped as you see fit.

(Note that this is a bit dangerous, unless you're 100% certain that
nothing in your running system is making use of files installed by one
of these packages. Even if it does break things, they're 100% fixable as
long as you have suitable recovery media to boot from, but proceed with
this at your own risk.)

There's also the linux-base package, but that seems to contain only
scripts and so forth for working with kernel images; at a glance I don't
think that's likely to contain anything you'll find problematic, and
there are other packages (such as initramfs-tools) which depend on it
and which you may want to retain.

-- 
   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