greetings
recently i asked a question and i was directed to the possibility that a certain fully enabled compiled kernel for CentOS 4 might help me.
so, i am looking at
http://ftp.osuosl.org/pub/centos/4/centosplus/Readme.txt
and wondering how to cover all bases....
can i cover all bases if i put an *blanket* package(s) exclude in /etc/yum.conf ?
or do i have to put package(s) exclude in every config file in the /etc/yum.repos.d/ directory ?
specifically, the CentOS-Base.repo file. do i put it at the top and then it will be in effect for all sub-repos in that file??
at the top of the CentOS-Base.repo only? :)
i realize that i can do it as a command line switch yet then my brains will fall out trying to remember everything.
regards and tia for any clarification.
- rh
the way I'd do it is keep centosplus disabled, and only enable it with a command line option when wanting to install/update something from centosplus
On Mon, 6 Jun 2005, Robert Hanson wrote:
greetings
recently i asked a question and i was directed to the possibility that a certain fully enabled compiled kernel for CentOS 4 might help me.
so, i am looking at
http://ftp.osuosl.org/pub/centos/4/centosplus/Readme.txt
and wondering how to cover all bases....
can i cover all bases if i put an *blanket* package(s) exclude in /etc/yum.conf ?
or do i have to put package(s) exclude in every config file in the /etc/yum.repos.d/ directory ?
specifically, the CentOS-Base.repo file. do i put it at the top and then it will be in effect for all sub-repos in that file??
at the top of the CentOS-Base.repo only? :)
i realize that i can do it as a command line switch yet then my brains will fall out trying to remember everything.
regards and tia for any clarification.
- rh
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
-}From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On -}Behalf Of Maciej Zenczykowski -}Sent: Monday, June 06, 2005 12:02 PM -}To: CentOS mailing list -}Subject: Re: [CentOS] yum setup help and extra repos including centosplus -} -}the way I'd do it is keep centosplus disabled, and only enable it with a -}command line option when wanting to install/update something from -}centosplus -}
right, thanks.
what i mean is, where (in what config file(s)) do i put the excludes line and where? example
exclude=php* kernel* postfix* perl* http* whatever*
so that i do not have to remember to "exclude" on the command line when i do a
yum --enablerepo=centosplus install kernel
do i put that at the top of the file in /etc/yum.conf of do i put it at the top of the /etc/yum.repo.d/CentOS-Base.repo or ?
regards and thanks!
- rh
yum --enablerepo=centosplus install kernel
Well if you're doing an install/update of a single package (kernel here) then yum will only ever pull in dependencies anyway so excludes aren't of any use.
Just be sure to verify what's going to be installed before hitting 'y' for confirmation.
Although it is true that yum needs some sort of package-pinning.
Cheers, MaZe.
On Mon, 2005-06-06 at 12:44 -0700, Robert Hanson wrote:
-}From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On -}Behalf Of Maciej Zenczykowski -}Sent: Monday, June 06, 2005 12:02 PM -}To: CentOS mailing list -}Subject: Re: [CentOS] yum setup help and extra repos including centosplus -} -}the way I'd do it is keep centosplus disabled, and only enable it with a -}command line option when wanting to install/update something from -}centosplus -}
right, thanks.
what i mean is, where (in what config file(s)) do i put the excludes line and where? example
exclude=php* kernel* postfix* perl* http* whatever*
If you are going to install a program (say kernel and kernel-devel) from centosplus ... but you are _NOT_ going to install php5 or any of the other programs in centosplus.
The best thing to do is this ...
Edit the file /etc/yum.repos.d/CentOS-Base.repo and go to the [base] section and add this line somewhere under [base]:
exclude=kernel*
do the same for the [updates] section. The purpose of these excludes is so that future updates will not over write the kernel you will install from centosplus.
Now in the [centosplus] section add the line:
includepkgs=kernel kernel-devel
You can then change the enabled in the [centosplus] section to:
enabled=1
With the includepkgs set, the only thing you can install from centosplus is kernel and kernel-devel ...
Use yum to get the new kernel:
yum install kernel kernel-devel
Let's say you also want to add the xfs tools to your system from [centosplus]. There is nothing to exclude (we don;t have these packages in base / updates), so you just need to add the packages to the includepkgs in the [centosplus] section, like this:
includepkgs=kernel kernel-devel xfsdump xfsprogs* dmapi*
Now you can do:
yum install xfsdump xfsprogs dmapi
The good thing about enabling [centosplus] and putting in the excludes in update and base and the includepkgs in centosplus is that if updates are done to centosplus and you run "yum update" (or "yum upgrade") you will get your updates, but not have things overwritten.
so that i do not have to remember to "exclude" on the command line when i do a
yum --enablerepo=centosplus install kernel
do i put that at the top of the file in /etc/yum.conf of do i put it at the top of the /etc/yum.repo.d/CentOS-Base.repo or ?
regards and thanks!
- rh