LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-28-2011, 05:08 AM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
A short downloadscript for Slackwarepackages


Hello,

I'm using a short script when I download the Slackware-(current) packages.

Since it works for me I want to share it. I've added a configurationfile, so anyone can adapt it to his/her requirements.

Note: I don't want to prevent anyone from buying the official DVD, but maybe you'll find it usefull to download the packages when performing a fresh install of current.

Advantage of the script is that one has less downloadsize and one can exclude package-series from downloading (in the conf-file).

Here is the configfile, it has to be saved as "getslack.conf" in the same directory as the script.
Code:
# getslack.conf
# written by markush -- markus_hutmacher@web.de

# chosing a mirror
# NOTE THAT ONLY FTP-SERVERS WILL WORK YET
# Choose an FTP-mirror near your location
mirror=ftp://ftp.gwdg.de/pub/linux/slackware/slackware64-13.37/
# choosing the architecture, 32 or 64
arch=64

# choosing the package-series to download
# possible packages are: a ap d e f k kde l n t tcl x xap y 
packages="a ap d e f k kde l n t tcl x xap y"

# choose your language/country
# for example de, fr --- this is used in order to choose the correct packages of the
# kdei series
country=de
and here the script, on my computer it resides as "getslack.sh"
Code:
#!/bin/bash
# written by markush -- markus_hutmacher@web.de

echo "sourcing the getslack.conf file"
. ./getslack.conf

# configure the mirror
echo "finding out which mirror to use"
echo $mirror

# creating the download-directory
echo "creating the download-directory"
mkdir slackware$arch
cd slackware$arch

# Download the packages
for i in `echo $packages`
do
    echo "creating directory $i"
    mkdir $i
    echo "entering directory $i"
    cd $i
    echo "downloading series $i"
    echo "downloading ..."
    wget -nv $mirror/slackware$arch/$i/*
    cd ..
done

# download the packages of the kdei-series
if [ -n "$country" ] 
then 
    echo "creating directory kdei"
    mkdir kdei 
    echo "entering directory kdei"
    cd kdei 
    echo "downloading the packages for kdei"
    wget -nv $mirror/slackware$arch/kdei/*-$country[_-]* 
fi 

cd ../..
For the installation I use the bootable usb-image or create a minimal install-CD (CD1 without any packages) like here ftp://ftp.gwdg.de/pub/linux/slackwar...nux/README.TXT explained.

I hope this will be useful.

Markus
 
Old 04-28-2011, 07:19 AM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
That would be useful to have an available 32 bit tree.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
my short intro muaaz LinuxQuestions.org Member Intro 1 10-27-2010 07:20 AM
short intro mcummings LinuxQuestions.org Member Intro 5 12-18-2006 03:34 AM
My short summary - what do you think Artik Debian 3 05-23-2005 06:53 AM
DVD:s too short? shaidar Linux - Hardware 3 04-07-2004 04:33 AM
Short write eric.houben Linux - General 2 07-13-2001 09:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration