smart installation not scriptable

Gavin Chester gavin.chester at gmail.com
Wed Dec 19 17:26:38 PST 2007


On Thu, 2007-12-20 at 06:34 +1100, Steve Morris wrote:
 
> If I can add my 2 cents worth, I use smart 0.52 on Mandriva Linux and
> it seems to me from this thread that everybody is overlooking the
> standard parameters that make smart eminently scriptable. These being
> the command that I use when I want to run smart in cli mode rather
> than gui mode:
> 
>        smart-root upgrade --stepped --update --yes
> 
> This functions in the following way:
>       * Run smart as root and prompt for the root password (whether
>         you need to run as root or user depends on your configuration)
>       * --update causes an automatic update of all channels
>       * --stepped causes smart to determine all packages that need to
>         be upgraded, once this is done it downloads the first
>         identified package and any associated dependencies and then
>         installs them, then proceeds on to the next identified
>         package, etc. This is the same as how urpmi on Mandriva works
>         by default
>       * --yes causes yes to be supplied to the question, for each
>         package/group of packages, whether or not you want the upgrade
>         to proceed

Steve, you have given some useful tips for someone new to smart, but old
news for the followers of this thread. With respect, you must not have
followed the thread from the beginning because you have missed the point
entirely. The OP wants a "first install" script where adding distro
channels is done without need of user interaction :-/

Gavin





More information about the Smart mailing list