linuxnewbie.org.gif
Tuesday, 12-Dec-2000 10:40:02 EST
Newbized Help Files articles discussion board bookshelf sensei's log advertising info

Slackware Tagfiles: V 1.0

Introduction

For those of you who installed Slackware Linux, you might have noticed that during the installation, you were given the option of installing using "tagfiles". If you have no idea what tagfiles are and want to know what they are, then read on. Tagfiles are actually a way to quickly install Slackware without having to pick the individual packages you want to install. This is done by creating text files that tell the Setup program what packages to install and what packages to skip. The preparation is time consuming, but it's extremely beneficial if you plan on installing Slackware on multiple machines or for future reinstallations. So let's begin.

Preparation

The first thing to do is to prepare the tagfiles for each package (eg: a1, ap1, d1, des1, etc...). If you have a Slackware CD, then open it up and go to the slakware directory. If you don't have a Slackware CD, just go to the FTP site you plan to get it from and go to the slakware directory. You should see many directories such as a1, ap1, d1, and so on. All the directories that end with a "1" have two tagfiles inside them. They are "tagfile" and "tagfile.org". We don't want "tagfile.org", just "tagfile". If you have access to a Linux system, you can do the following to speed things up. First mount a floppy disk:

mount -t vfat /dev/fd0 /floppy mkdir /floppy/TagfileDirectory

Once that's done with, copy all the package directories in the slakware directory to /floppy/TagfileDirectory using the following command (make sure you are in the slakware directory!):

for i in *; do if [ -d "$i" ] then; mkdir /floppy/TagfileDirectory/$i; cp $i/tagfile /floppy/TagfileDirectory/tagfile; fi; done

Ignore any errors telling you that a tagfile doesn't exist in certain directories. Tagfiles are only in directories that end with a "1". Now if it happens you don't have a Linux machine to help you do the above, then you'll need to do it the long way. In your floppy disk, create a directory called TagfileDirectory. Then copy every directory in the slackware directory to the TagfileDirectory. The only thing they need to contain is a tagfile, and nothing more! Now not all of them will contain a tagfile. As I said, only directories ending with "1" will contain a tagfile. When you're done, it's time to modify the tagfiles.

Modifying the Tagfiles

This is the time consuming process. Here we will go through all the directories that you copied into TagfileDirectory and modify all the tagfiles in them. But before that, a short explanation on the format of the tagfiles. A tagfile generally looks like this:

# this is a comment package_name: FLAG

Any statement preceeded by a "#" is a comment and is ignored by the installer. "package_name" is the name of the package that you want to install or skip. We won't touch that. The only thing we're concerned of here is the "FLAG". The flag can be one of four possible values:

ADD - automatically install the package
SKP - automatically skip over the package
REC - you are prompted to install the recommended package
OPT - you are prompted to install the optional package

The only flags you want to concern yourself with is ADD and SKP. So here's what a modified a1/tagfile looks like:

aaa_base: ADD
autolibs: ADD
bash: ADD
bash1: SKP
bin: ADD
bzip2: ADD

Now the above will cause all the packages except for bash1 to be installed during the installation. This is pretty simple. Whatever package you want installed, make sure the flag is ADD. Whatever you don't want installed, make sure it's SKP. Do this for all the tagfiles.

Installation

When you're finally done, start the Slackware setup and go through it until you reach the Package Series Selection stage, where you get to pick whatever package you want to install. Pick them all. Continue on and you'll reach the Select Prompting Mode. When you get here, choose the option "tagpath". This will allow you to specify the directory where you currently have your custom tagfiles in. When you are asked to provide the path to your tagfiles, press Alt-F2. This will take you to virtual screen two. Login as root, and mount your floppy disk:

mount -t vfat /dev/fd0 /floppy

Now press Alt-F1 to return to the menu screen. In the place where you need to enter the path to your tagfiles, type:

/floppy/TagfileDirectory

Push "OK" and the installation should begin without prompting you for what packages you want. Go grab a cup of coffee or something. When the installation of packages finishes, you can continue with the Slackware setup.

Conclusion

Don't throw away your custom tagfiles. Chances are you'll need to reinstall Slackware again for whatever reasons. With the tagfiles floppy, you can just insert it in, and you're on your way to a freshly installed system without the hassle of individual package choosing. Or if you need to make multiple installs of Slackware on many systems, just use your tagfiles and they'll all have the same software. Quick and easy.

X_console shellscope@yahoo.com


Would you like to have your article published online? Send them in to newfiles@linuxnewbie.org

The Linux Channel at internet.com
Linux Planet
Linux Today
Linux Central
Linuxnewbie.org
PHPBuilder
Just Linux
Linux Programming
Linux Start
BSD Today
Apache Today
Enterprise Linux Today
BSD Central
All Linux Devices
SITE DESCRIPTIONS
[-What's New-]
Order a Linuxnewbie T-Shirt
Easy Webcam NHF
Directory Navigation NHF
Installing Snort 1.6.3 on SuSE 6.x-7.x
Customizing vim
The SysVinit NHF
Installing ALSA for the VT82C686 integrated sound
USB Creative Video Blaster II for Linux
Configuring the Intellimouse Explorer in XFree86 V4+
The beginnings of a distro NHF
Getting Past Carnivore?
Getting and Installing PGP
Getting your ATI Rage 128 Working
How to create a multiple partition system
Using Fdisk
Introduction to Programming in C/C++ with Vim
Adding a Hard drive in Linux -- In five steps
Installing ALSA for the Yamaha DS-XG Sound Card
Getting your Diamond Rio Mp3 Player to work with Linux
Bash Programming Cheat Sheet
Installing NVIDIA Drivers for Mandrake
Setting up Portsentry
Hard Drive Speed Tweak for Linux
Sensei's Log
Chat room
Join: Linuxnewbie.org SETI Black Belts!
Send in your news
Click the image to add Linuxnewbie.org to your MyNetscape Page
[-LNO Newsletter-]

[-Archive-]
The beginnings of a distro NHF
Connecting to the Internet using KPPP
Getting your SBLive to work
Unreal Tournament NHF
LWE Day 2 Pictures
LWE Day 1 Pictures
The LNO FAQ!
WoW (Words of Wisdom)
Other sites news
What is Linux?
What is Linux? part deux (ups & downs)
Search newsgroups
The List
ALS Report
Feedback Form
jobs.linuxtoday.com.gif
Match: Format: Sort by:
Search:
[-Quick Links-]

Copyright 2000 internet.com Corp. All Rights Reserved. Legal Notices Privacy Policy

internet.com.gif