Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Exclude a package from 'aptitude full-upgrade'?

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
bdz
Posts: 63
Joined: 2008-06-16 04:32

Exclude a package from 'aptitude full-upgrade'?

#1 Post by bdz »

Is there a way to exclude a package from 'aptitude full-upgrade' or 'aptitude safe-upgrade'?

I normally run 'aptitude full-upgrade' regularly but there is one package I need to keep locked at an old version. The aptitude man page doesn't say anything about this.

thanks

sgosnell
Posts: 975
Joined: 2011-03-14 01:49

Re: Exclude a package from 'aptitude full-upgrade'?

#2 Post by sgosnell »

Try putting "debian hold package" into your favorite search engine, then read a few of the results. There are many.
Take my advice, I'm not using it.

User avatar
4D696B65
Site admin
Site admin
Posts: 2696
Joined: 2009-06-28 06:09
Been thanked: 86 times

Re: Exclude a package from 'aptitude full-upgrade'?

#3 Post by 4D696B65 »

bdz wrote: one package I need to keep locked at an old version. The aptitude man page doesn't say anything about this.
man aptitude wrote:<package>=
Place <package> on hold: cancel any active installation, upgrade, or removal, and prevent this package from being
automatically upgraded in the future.

<package>:
Keep <package> at its current version: cancel any installation, removal, or upgrade. Unlike “hold” (above) this does not
prevent automatic upgrades in the future.

bdz
Posts: 63
Joined: 2008-06-16 04:32

Re: Exclude a package from 'aptitude full-upgrade'?

#4 Post by bdz »

I tried

Code: Select all

aptitude -s full-upgrade libreoffice-base-core=
but it comes back with
No packages will be installed, upgraded, or removed
whereas there are 12 package that should be updated.

Should I be using hold with a different aptitude command? Or will libreoffice-base-core be skipped the next time I run

Code: Select all

aptitude full-upgrade

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: Exclude a package from 'aptitude full-upgrade'?

#5 Post by reinob »

@bdz,

if you want to lock libreoffice-base-core you just

Code: Select all

# apt-mark hold libreoffice-base-core
libreoffice-base-core set on hold.
You can later unhold it.

bdz
Posts: 63
Joined: 2008-06-16 04:32

Re: Exclude a package from 'aptitude full-upgrade'?

#6 Post by bdz »

Ahh. Great, thanks

Post Reply