smart installation not scriptable

Anders F Björklund afb at algonet.se
Wed Dec 19 00:50:41 PST 2007


Cliff Wells wrote:

> Someone must interactively hit <Enter> for each of these questions and
> this is my problem.  There is no "-y" option for "smart update" nor 
> does
> it accept input from /usr/bin/yes.  Worse, when run from a script with
> no console, it apparently interprets everything as "N" so no
> repositories get set up and smart will then fail to do anything from
> that point on.

I'm using the following invocation:
smart update -o force-channelsync=yes

It has the side-effect of downloading updates for each channel too,
beyond merely adding them to the config, but that could be a feature...

--anders




More information about the Smart mailing list