LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-13-2008, 09:35 PM   #1
pridefc
Member
 
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Rep: Reputation: 15
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.
 
Old 03-14-2008, 08:42 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Install wajig with:
apt-get install wajig

Then exclude the package with:
wajig hold <package>

http://www.togaware.com/linux/surviv..._Overview.html
 
Old 03-16-2008, 01:24 PM   #3
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
Simon,
Do you use wajig for all Debian pkg. mgt.?
Or just for putting pkgs. on hold?
 
Old 03-16-2008, 03:49 PM   #4
pridefc
Member
 
Registered: Nov 2005
Distribution: redhat, debian, ubuntu
Posts: 47

Original Poster
Rep: Reputation: 15
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...
 
Old 03-17-2008, 04:43 AM   #5
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
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>
 
Old 09-20-2011, 11:32 AM   #6
chudster
LQ Newbie
 
Registered: May 2008
Posts: 22

Rep: Reputation: 0
Quote:
Originally Posted by pridefc View Post
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)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt-get update and apt-get upgrade rapattack Debian 32 01-28-2008 09:04 AM
cannot update,upgrade using apt-get...errors vineet7kumar Debian 3 11-10-2007 01:18 PM
apt-get update/upgrade Red Squirrel Linux - Software 26 07-11-2005 11:14 PM
Does Apt-get dist-upgrade automatically update the kernel? adamb10 Ubuntu 2 07-10-2005 10:57 AM
Apt-get update problem after upgrade and others satimis Fedora 0 07-26-2004 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration