Re: Running installation shell script

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

 



On Tue, May 1, 2012 at 8:22 AM, Kamal Ahmed <kamal2222ahmed@xxxxxxxxx> wrote:
> Hi,
> Is it permissible to run a shell script, which has commands like:
>
> echo "Installing Development Tools"
> yum $YUMOPTS groupinstall "Development Tools"
> echo "Installing other packages"
> yum $YUMOPTS install python-devel.i386
> yum $YUMOPTS install postgresql84-server.i386 postgresql84-devel.i386
> postgresql84-python.i386
>
> # note: check install script that already exists. ask kamal.
> # Download and install other packages
> echo "Installing Asterisk"
> wget
> http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-10.2.1.tar.gz
> tar xvzf asterisk-10.2.1.tar.gz
> cd asterisk-10.2.1
> ./configure
> make
> make install
> chkconfig asterisk on
>
> in the %post  section ?

No, don't run rpm or yum in the spec, in any place.  If you need
packages installed to build, use BuildRequires.  If you need packages
installed to run, use Requires.

-J

> Thanks,
> -Kamal.
>
> --
> packaging mailing list
> packaging@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/packaging



-- 
http://cecinestpasunefromage.wordpress.com/
------------------------------------------------
in your fear, seek only peace
in your fear, seek only love

-d. bowie
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux