LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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, 10: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, 09:42 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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, 02: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: 231Reputation: 231Reputation: 231
Simon,
Do you use wajig for all Debian pkg. mgt.?
Or just for putting pkgs. on hold?
 
Old 03-16-2008, 04: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, 05:43 AM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 197Reputation: 197
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, 12:32 PM   #6
chudster
LQ Newbie
 
Registered: May 2008
Posts: 19

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:04 AM
cannot update,upgrade using apt-get...errors vineet7kumar Debian 3 11-10-2007 02:18 PM
apt-get update/upgrade Red Squirrel Linux - Software 26 07-12-2005 12:14 AM
Does Apt-get dist-upgrade automatically update the kernel? adamb10 Ubuntu 2 07-10-2005 11:57 AM
Apt-get update problem after upgrade and others satimis Fedora 0 07-26-2004 06:50 AM


All times are GMT -5. The time now is 02:20 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration