help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New packages: feature


From: Phil D'Amore
Subject: Re: New packages: feature
Date: Wed, 12 Nov 2003 08:48:11 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314

Yeah, rpm is unable to automatically handle the dependencies, unless all packages involved are presented on the command line. About all it can do is package ordering. Many folks try to directly link the functionality of rpm to something like apt-get, when up2date, which just sits on top of rpm anyhow, is a better comparison.

That aside, this is probably a good compromise between the two methods.

Alexander Jolk wrote:

Hi,

Do you
think it'd be better to gather a list of packages to be installed and
run the command in one go, or run the command for each package?

I know that rpm is too stupid to sort out dependencies; in my hand-made
scripts, I had to make sure everyhting got passed on the command line in
one go.  (Everybody's not yet apt out there...)

Why don't you use some kind of place holder in the install command? SOmething like
DefaultInstallCommand = ( /sbin/apt-get install %p )
where %p expands to a single package to install, or
DefaultInstallCommand = ( /sbin/rpm -i %P )
where %P expands to the list of all packages to install?

Alex


--
Phil D'Amore                             "Sometimes there is a fine line
Senior System Administrator               between criminally abusive
Red Hat, Inc                              behavior and fun."
Office: 919.754.3700 x44395                 -- Ted the Generic Guy
Pager: 877.383.8795                            (Dilbert 4/19/2003)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]