LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   distro extension script (https://www.linuxquestions.org/questions/linux-general-1/distro-extension-script-134066/)

DAChristen29 01-12-2004 02:11 PM

distro extension script
 
i just installed slackware 9.1 after configuring it 3 other times. i have also installed programs before i re-installed it. im tires of losing my software and configuration files.

what i did was i created a folder called "extended distro". and make a sub-folder called "pkgs". i put all my .tgz and .tar.gz files in there. what i want to know is if there's a way i can create a script that will untar all those files into their current directories, automatically configure, make, and install the programs (the .tar.gz ones, not .tgz). And for the .tgz files, just a scrit that will automatically take multiple .tgz files, and install those

is this possible, and where can i learn to do it? can someone here make it for all the lazy people like me?

basically, all the extended packages are just packages that's been missing from slackware, like: wings3D, blender, MPlayer, dvd codecs, wine, and a few games like armagetron & tuxracer.

Tinkster 01-12-2004 03:29 PM

The first thing you need to rid of mate is that
re-install mentality from windows days ....

The second thing you need is checkinstall :}

It replaces the "make install" step of soucre-
tarballs and creates a slack-pack instead that
(it's being installed as well) you can tuck
away for later use ... and as for the utility
that installs several slack-packs: it's called
installpkg and is part of Slacks package tools.

installpkg /my/own/tarballs/*.tgz


Cheers,
Tink

DAChristen29 01-12-2004 05:22 PM

wow, kool. i didnt know installpkg could install multiple .tgz files at once.

but, some arent .tgz. so for those, i do "./configure" then when thats done, do "make" then, DONT do make install, but instead do "checkinstall"? and this will make a slackware installable .tgz file? is this correct?

thats some amazing stuff, im very glad i came over from suse 9. im a lot happier now. thanks for the help guys.

Tinkster 01-12-2004 07:20 PM

You got that all right :)

Congrats!

Cheers,
Tink

DAChristen29 01-13-2004 08:57 AM

YAY! im starting to figure sstuff out...and its all thanks to slackware. oh, and you guys fr helping me out.

as most of you probably know, i can from suse 9, which was all automated and didnt offer me to do stuff like this. maybe it did, but i didnt really care at the time. but, slackware's proven itself worthy for my laptop, and im loving every minute of it.

as for my config files, how would i write a script that will do something like: "cp /mnt/cdrom/configs/wine.cfg /home/dave/.wine" ? and do that with multiple config files for different programs? like as soon as i execute the script, it automatically runs line-by-line the copy commands?


All times are GMT -5. The time now is 02:18 AM.