|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] APT and RPM Packager Lookup Tables
|
On Wed November 28 2007 09:40, Stephen Gran wrote:
> > Well for starters, if you are installing something you normally want it
> > installed. After you run 'yum install <arg>' yum stops and ask if you
> > really want to install these packages. Since I want this software
> > install there is no reason for yum to stop and ask me so by doing 'yum
> > -y install <arg>' yum doesn't stop and wait for me to type 'y' to
> > continue installing the software. The default answer is 'N' so just
> > hitting enter will stop the install.
> >
> > I guess another one would be if you are running a cron job to install
> > something. Without the switch the process would halt until a key is
> > hit. 99.999% of the time you wouldn't want that.
>
> The question is why not use yes:
>
> yes | yum install foo
No, the question is why would you.
Why use pipe when the program already has a mechanism built in to it?
>
> Will do (mostly) the same thing.
>
> The reason you don't want to use yes, I assume, is that at some point
> the maintainer scripts might stop and prompt you, and blindly answering
> yes to that question could be catastrophically wrong. Seperating that
> into an "only answer yes to prompts that come from the package manager"
> seems reasonable to me.
No the reason I don't use "yes |" is because I don't have to, period!
No other reason.
--
Regards
Robert
Smile... it increases your face value!
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|