LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (http://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to exclude kernel* from apt-get update upgrade? (http://www.linuxquestions.org/questions/ubuntu-63/how-to-exclude-kernel%2A-from-apt-get-update-upgrade-627919/)

pridefc 03-13-2008 09:35 PM

How to exclude kernel* from apt-get update upgrade?
 
I'm running Ubuntu 7.10 without the X-windows.
I run apt-get update and apt-get upgrade via cron.
How do I exclude apt-get from installing kernel*?

Thanks.

Simon Bridge 03-14-2008 08:42 AM

Install wajig with:
apt-get install wajig

Then exclude the package with:
wajig hold <package>

http://www.togaware.com/linux/surviv..._Overview.html

archtoad6 03-16-2008 01:24 PM

Simon,
Do you use wajig for all Debian pkg. mgt.?
Or just for putting pkgs. on hold?

pridefc 03-16-2008 03:49 PM

Thanks for the info. guys.
Curretly using only apt-get for package management.
I installed wajig and tried to hold kernel but not sure what format to use:
wajig hold kernel* doesn't work...

Simon Bridge 03-17-2008 04:43 AM

Quote:

Originally Posted by archetoad6
Do you use wajig for all Debian pkg. mgt.?
Or just for putting pkgs. on hold?

I don't use wajig at all...
Quote:

Originally Posted by pridefc
wajig hold kernel* doesn't work...

You have to use the actual package name.
That would be: linux-image*

I don't know if wajig accepts globs - if not, try linux-image-generic or linux-image-<your kver>

chudster 09-20-2011 11:32 AM

Quote:

Originally Posted by pridefc (Post 3088071)
I run apt-get update and apt-get upgrade via cron.
How do I exclude apt-get from installing kernel*?

Sorry for the thread-digging, but this is useful info:

echo 'linux-image-2.6.35-30-virtual hold' | dpkg --set-selections
(get the kernel version number from your menu.lst file)


All times are GMT -5. The time now is 08:40 AM.