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

Notices


Reply
  Search this Thread
Old 03-13-2009, 11:44 PM   #1
alMubarmij
Member
 
Registered: Dec 2005
Posts: 140
Blog Entries: 1

Rep: Reputation: 16
How can I exclude some packages from Yum updates ?


How can I exclude some packages from any updates ?
I just want keep some application versions, like my custom kernel.
How can I do this with Yum, Yum Extender or PackageKit ?
 
Old 03-13-2009, 11:57 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
See man yum.conf

exclude in /etc/yum.conf is the easiest way for persistent exclusions, or --exclude on the yum command line for temporary exclusion
 
Old 03-20-2009, 03:46 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Incidentally, kernel is an exception in YUM. It only installs new kernels (if they are avail) beside the current one.. It does NOT upgrade the current kernel on your machine.
IOW, you just end up with multiple entries in grub.conf.
 
Old 03-20-2009, 03:52 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Except by default it only keeps 3 kernels
 
Old 03-26-2009, 01:19 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Have you got a page that points to that, I could only find http://www.gnu.org/software/grub/man...#Configuration :
Quote:
Provide a menu interface
A menu interface listing preset boot commands, with a programmable timeout, is available. There is no fixed limit on the number of boot entries, and the current implementation has space for several hundred.
I'd be interested to know.
 
Old 03-26-2009, 02:20 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Was that aimed at me Chris? If so, from man yum.conf
Code:
installonlypkgs
       List  of  packages that should only ever be installed, never updated. Kernels in particular fall into this cate-
       gory. Defaults to kernel, kernel-smp, kernel-bigmem, kernel-enterprise, kernel-debug, kernel-unsupported.

installonly_limit
       Number of packages listed in installonlypkgs to keep installed at the same time. Setting to 0 disables this fea-
       ture. Default is '3'.
 
Old 03-29-2009, 01:05 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Cheers. Funnily enough, was just looking at /etc/yum.conf and saw that setting (commented out on my system) ... small world eh ?
 
  


Reply

Tags
update, yum



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
yum command to exclude some updates? gimmee Fedora 8 03-16-2014 03:15 AM
yum --exclude=foo lleb Linux - Software 8 03-08-2007 11:58 PM
Always Exclude in Updates iXneonXi Ubuntu 2 01-06-2007 07:34 PM
yum exclude not working aoconnor Linux - Software 2 03-16-2006 12:33 PM
Howto exclude during yum update mohapi Fedora 4 07-02-2004 10:19 AM

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

All times are GMT -5. The time now is 08:02 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
Open Source Consulting | Domain Registration