Robert Spangler | 1 Jul 2006 01:59

Re: Selectively updating protected repos

On Thu June 29 2006 16:20, Bart Schaefer wrote:

>  I've been trying out the protectbase plugin for yum, and haven't yet
>  determined the best way to selectively update a package.  E.g. I'd
>  like to mark the base repo as protected, but get the latest firefox
>  from the centosplus repo.
>
>  What's the correct incantation for this?

Goto your /etc/yum.repos.d and edit CentOS-Base.repo and do the following;

under [base] add
exclude=firefox

Under [centosplus] add
includepkgs=firefox

--

-- 

Regards
Robert

Smile... it increases your face value!
Warren Crigger | 1 Jul 2006 03:42

RE: Re: /etc/inittab: Serial access/ Console Server

Very good info...although at my company we manage our AIX and Linux servers
with advocent/kvm when ssh is not an option.  At home, this may come in
handy!  Thanks!

> -----Original Message-----
> From: centos-bounces@... 
> [mailto:centos-bounces@...] On Behalf Of 
> pctech@...
> Sent: Friday, June 30, 2006 1:11 PM
> To: centos@...
> Subject: RE: Re: [CentOS] /etc/inittab: Serial access/ Console Server
> 
> >On Thu, 2006-06-29 at 20:48 -0700, Chris Fox wrote:
> >> -----BEGIN PGP SIGNED MESSAGE-----
> >> Hash: SHA1
> >>  
> >> Rodrigo Barbosa wrote:
> >> 
> >> > you might want to try agetty:
> >> >
> >> > T0:23:respawn:/sbin/agetty 9600 ttyS0 vt100
> >> >
> >> > Not sure if it will work, but seems likely.
> >> >
> >> I've always wanted to know how this is done (before serial 
> ports go 
> >> away forever).
> >> 
> >
> >We (CentOS Project) just got a $29,000 machine w/o a video 
(Continue reading)

Karl R. Balsmeier | 1 Jul 2006 05:30

RE: Re: /etc/inittab: Serial access/ Console Server

yeah, when I asked this yesterday I had no idea the depth of response
would be so informative.

comparative analysis of kvm's and console servers shows that both have
*very* different applications, perhaps not comparable in the end.

we run 70+ nodes, alot of centos boxen, and lots of routers, switches,
load balancers and firewalls added to the mix.  lots o' remote console
access is required cause the colo is in silicon valley.  so serial line's
I doubt are going away, hehe.

Thanks to Rodrigo yesterday, he responded within 5 minutes to my question,
which got the lab config done. : )

Then today at the colo to see the in-depth info by pctech member, I was
able to connect up another wave of machines and get out of silicon valley
in time to see some world cup!

-karl

> Very good info...although at my company we manage our AIX and Linux
> servers
> with advocent/kvm when ssh is not an option.  At home, this may come in
> handy!  Thanks!
>
>> -----Original Message-----
>> From: centos-bounces@...
>> [mailto:centos-bounces@...] On Behalf Of
>> pctech@...
>> Sent: Friday, June 30, 2006 1:11 PM
(Continue reading)

Phil Schaffner | 1 Jul 2006 14:53
Picon

Re: Installing to USB Drive [TOO]

On Tue, 2006-06-27 at 10:48 -0700, Mike wrote:
> Phil Schaffner wrote: 
...
> > (Group "GNOME Desktop Environment" was too big for the stick.  Might be
> > able to manage a GNOME or KDE environment by careful package selection.
> > The updates and installs could have been done before the move to the USB
> > drive.  Using a larger install partition and cleaning up install
> > packages before the copy operation might have allowed more packages on
> > the target USB device.)

Did try again with a larger initial partition on the hard disk and was
able to "yum groupinstall" both GNOME and KDE, then clean up and fit it
all on the USB stick as described earlier - used 1.7GB with my setup.

...
> Now that sounds achievable.  If I can free some time up this week I'll
> be giving that a try.
> Nice work!

Please report how it goes.

Phil
Phil Schaffner | 1 Jul 2006 15:42
Picon

Re: Selectively updating protected repos

On Fri, 2006-06-30 at 19:59 -0400, Robert Spangler wrote:
> On Thu June 29 2006 16:20, Bart Schaefer wrote:
> 
> >  I've been trying out the protectbase plugin for yum, and haven't yet
> >  determined the best way to selectively update a package.  E.g. I'd
> >  like to mark the base repo as protected, but get the latest firefox
> >  from the centosplus repo.
> >
> >  What's the correct incantation for this?
> 
> Goto your /etc/yum.repos.d and edit CentOS-Base.repo and do the following;
> 
> under [base] add
> exclude=firefox
> 
> Under [centosplus] add
> includepkgs=firefox

But - this will effectively exclude all other centosplus packages.
May/may-not be what was wanted.  I've also played with protectbase and
found it difficult to find the right combination of protect=0/1 and
include/exclude to get the desired behavior to allow some packages from
add-on repos.  Eventually ended up with protect=1 for all the repos I
wanted to use which kind of defeats the purpose.

Phil
Kirk Bocek | 1 Jul 2006 17:23
Favicon

PXE Boot Live CD

Is it possible to boot the Live CD through PXE? I've tried using Red Hat's PXE 
setup tool but have been unsuccessful.

Thanks,
Kirk Bocek
Bart Schaefer | 1 Jul 2006 17:44
Picon

Re: Selectively updating protected repos

On 6/30/06, Robert Spangler <lazydog@...> wrote:
>
> under [base] add
> exclude=firefox

I was afraid this was the answer.  The trouble here is that, come 4.4,
the firefox package in the base is going to be newer than the one in
centosplus.  I don't want to exclude firefox from the base, I want the
most recent one from either of the base or plus repos, without having
to get everything else from the plus repo.

This exclude is what I've used for now, but I think it's sub-optimal.

> Under [centosplus] add
> includepkgs=firefox

This doesn't appear to be necessary in combination with the exclude
and protect=1 on base.  Hmm, what would happen if I left out the
exclude for base but used the include for plus?
Johnny Hughes | 1 Jul 2006 18:06

Re: Selectively updating protected repos

On Sat, 2006-07-01 at 09:42 -0400, Phil Schaffner wrote:
> On Fri, 2006-06-30 at 19:59 -0400, Robert Spangler wrote:
> > On Thu June 29 2006 16:20, Bart Schaefer wrote:
> > 
> > >  I've been trying out the protectbase plugin for yum, and haven't yet
> > >  determined the best way to selectively update a package.  E.g. I'd
> > >  like to mark the base repo as protected, but get the latest firefox
> > >  from the centosplus repo.
> > >
> > >  What's the correct incantation for this?
> > 
> > Goto your /etc/yum.repos.d and edit CentOS-Base.repo and do the following;
> > 
> > under [base] add
> > exclude=firefox
> > 
> > Under [centosplus] add
> > includepkgs=firefox
> 
> But - this will effectively exclude all other centosplus packages.
> May/may-not be what was wanted.  I've also played with protectbase and
> found it difficult to find the right combination of protect=0/1 and
> include/exclude to get the desired behavior to allow some packages from
> add-on repos.  Eventually ended up with protect=1 for all the repos I
> wanted to use which kind of defeats the purpose.
> 
> Phil

When you use protectbase ... you are saying this:

(Continue reading)

Bart Schaefer | 1 Jul 2006 18:14
Picon

Re: Selectively updating protected repos

On 7/1/06, Bart Schaefer <barton.schaefer@...> wrote:
> Hmm, what would happen if I left out the
> exclude for base but used the include for plus?

I tried this with the kernel* packages and it doesn't do what I hoped,
unless I also turn off protect on base, which sort of defeats the
purpose.  Oh, well.

Related question:  How does one get a list of the contents of a repo
so as to maintain a correct includepkgs line, while still having the
includepkgs line present?  E.g. suppose some new package is added to
centosplus that I might want to use to update a base package.  If I
have an includepkgs line for centosplus, "yum check-update" will never
show me that a new package is there, because it will ignore everything
except what's already in the includepkgs line.
Johnny Hughes | 1 Jul 2006 18:36

Re: Selectively updating protected repos

On Sat, 2006-07-01 at 09:14 -0700, Bart Schaefer wrote:
> On 7/1/06, Bart Schaefer <barton.schaefer@...> wrote:
> > Hmm, what would happen if I left out the
> > exclude for base but used the include for plus?
> 
> I tried this with the kernel* packages and it doesn't do what I hoped,
> unless I also turn off protect on base, which sort of defeats the
> purpose.  Oh, well.
> 
> Related question:  How does one get a list of the contents of a repo
> so as to maintain a correct includepkgs line, while still having the
> includepkgs line present?  E.g. suppose some new package is added to
> centosplus that I might want to use to update a base package.  If I
> have an includepkgs line for centosplus, "yum check-update" will never
> show me that a new package is there, because it will ignore everything
> except what's already in the includepkgs line.

How I do it is with a separate config file (not named .repo) that you
can pass in via the command line ...

yum -c /path/to/yum.check.conf

_______________________________________________
CentOS mailing list
CentOS@...
http://lists.centos.org/mailman/listinfo/centos

Gmane