Tagfiles - did someone do the hard work already?
Hey all,
I've ventured into the realm of tagfile editing, because I would like to speed up the time it takes me to select what I want and what I don't want, but before I start messing around with the entire thing, I thought I would ask if someone here had already done all the hard work? What I want is tagfiles for a barebones server. Network, SSH and the different developer tools for future compiling of software. And that's it. Anybody who've already done such a bunch of tagfiles, and if so, would you be willing to share? :) Regards, Thomas |
This may be useful:
http://www.slackbasics.org/html/pkgm...gmgmt-tagfiles This chapter also has a script that can build tagfiles based on the installed system. I used that in the past to make my initial tagfiles. |
There is also "tagger" which creates a set of tagfiles by inspecting an already installed system.
Look here: http://www.bilbos-stekkie.com/tagger/ Eric |
Exceptionally cool! Thanks a lot guys.
:) Thomas |
Quote:
|
Ah, mind-f*ckup from my side. The new tagger was in the development version of the Slack Basics book. Since the book is pretty much in maintenance mode it was not added to the 10.2 book. So, here it is from the snapshot:
Tagfile copy: Code:
#!/bin/sh Code:
#!/bin/sh "With a simple script, it is also possible to build tagfiles based on the packages that are installed on the current system. I owe thanks to Peter Kaagman for coming up with this nifty idea!" I'll put it online somewhere. |
Hi Daniel
I took your code and added commandline switches and some sanity checks to it, and uploaded the resulting script as tagfile_generator.sh Free for all. Cheers, Eric |
Great work Eric!
|
Funny to see these things pop up now and than, never realized that those little scripts would ever be of interest of anyone but myself..... wrote them - in my own clumsy style - to get a better grasp of the whole tagfile idea. And now someone with a real understanding of scripting makes something nice out of them....
|
Hello Alien Bob
tried your script but it gives this error Slackware source '/home/ftp/pub/Linux/Slackware/slackware-11.0/slackware' does not exist! I've had a look to it in a text editor and noticed the line SRCDIR=${SRCDIR:-~ftp/pub/Linux/Slackware/slackware-11.0/slackware} what is the correct way to edit the line for my install (pretty much a standard slack11 install)? sorry if the question is st00pid, but I don't understand much about scripts and how they work (and besides, I'm a n00b... ;->) regards. ivanpro. |
IvanPro,
In Eric's script Code:
SRCDIR=${SRCDIR:-~ftp/pub/Linux/Slackware/slackware-11.0/slackware} So if you don't have the sources on your computer you will probably need to change that path to reflect a CD/DVD, or copy the contents of the CD/DVD to a directory on your comp, then change that line appropriately. I.e., my source is at: Code:
SRCDIR=${SRCDIR:-/server2/ftp/pub/Linux/Slackware/slackware-current/slackware} |
For the origional script it was true you had to change it to point to the right source.... Eric made it a bit more sophisticated
Code:
# Parse the commandline options: What I am wondering about is this: I made 2 separate scripts because there are 2 CDs.... the first script had to run 2 times to get all the origional tagfiles from the CDs. After that the second script would make the new tagfiles based on /var/log/packages. But that is no biggy... I wil just try it out... and learn some more bash... thanks Eric \o/ |
All times are GMT -5. The time now is 01:10 AM. |