smart installation not scriptable
Cliff Wells
cliff at develix.com
Tue Dec 18 20:35:33 PST 2007
My final working solution (a gross hack) was the following:
#!/bin/bash
cd /tmp
yum -y install smart
mkdir -p /etc/smart/channel-orig
mv /etc/smart/channels/*.channel /etc/smart/channels-orig
smart channel -y --remove-all
for f in /etc/smart/channels-orig/*.channel; do
smart channel --add $f -y
done
mv /etc/smart/channels-orig/*.channel /etc/smart/channels
rm -rf /etc/smart/channels-orig/
smart update
smart upgrade -y
smart install -y python-devel python-imaging python-psycopg2 httpd postgresql-server django mod_python mod_ssl
Regards,
Cliff
On Tue, 2007-12-18 at 22:47 -0500, Patrick Shanahan wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> * Cliff Wells <cliff at develix.com> [12-18-07 21:23]:
> >
> > Dependency Installed: fedora-package-config-smart.i386 0:8-10 smart.i386
> > 0:0.51-49.fc8
> > Complete!
> > [root at vz111 /]# smart update
> > New channel 'Fedora - i386 - Development (development)' detected.
> > Include it? (Y/n):
> >
> > New channel 'Fedora - i386 - Development - Debug
> > (development-debuginfo)' detected.
> > Include it? (Y/n):
> >
>
>
> herein lies your problem. The package contains pre-configured
> channels. If you add your own channels, interaction is not required.
> So, the first operation:
> smart channel --remove-all -y
>
> so there are no channels and no questions
> then:
> smart channel --add ./mychannels.txt
> smart update
> and no quesitons.
>
> - --
> Patrick Shanahan Plainfield, Indiana, USA HOG # US1244711
> http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2
> Registered Linux User #207535 @ http://counter.li.org
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFHaJRWClSjbQz1U5oRAg3IAKCsFlatB+RioniGz8VbZkyqt/cnbgCfRu56
> tKHUZdZBu/JWyRADu/sq/TA=
> =TXLL
> -----END PGP SIGNATURE-----
More information about the Smart
mailing list