LinuxQuestions.org
Visit Jeremy's Blog.
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 01-30-2005, 06:03 AM   #1
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
question on package management


I've been reading a bit in the book but I couldn't find if it requires a lot of time to keep your system up to date? I'm using debian now and it's simply running apt everyday. I hear there are some programs that do this for slack as well but it looks like those aren't really the way to go cause they're not in the documentation? Do you have to download all the files manually, and won't that take a lot of time with dependencies? Thanks for the help!
 
Old 01-30-2005, 06:07 AM   #2
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
you need a program called 'checkinstall' which is very good for package management.

when you configure a program like
./configure
make
make install

instead of doing that, replace 'make install' with 'checkinstall'
./configure
make
checkinstall

and it will execute 'make install' for you, as well as create a .tgz package for that program, as well as stick it on pkgtool

so if you want to upgrade or delete it, you can just go to pkgtool and remove from there

and if you want to reinstall it, instead of recompiling you can just use
installpkg yourpackage.tgz


as for updating your system, you have 3 good choices
1 - manually download the packages from slackware.com/pb after reading about them in slack current update changelog, and then
installpkg mypackage.tgz

2 - use swaret to do that automatically for you (i use it for few years, its alright)

3 - use slapt-get if you're used to apt-get to do it automatically for you

hope this helps
 
Old 01-30-2005, 06:24 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Does swaret create or use binary packages or can I still use configure options and does it update correctly then? Is .tgz the same as .tar.gz?

Thanks for the really useful info above!
 
Old 01-30-2005, 06:32 AM   #4
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
swaret uses packages, it basically makes a list of the packages you have installed, compares that list with the one from slackware's site, and downloads and upgrades the latest packages it sees that it should.

the only thing you should worry about in swaret, is that if you allow it to upgrade your kernel, and if it does, you must type
lilo
before you reboot.. That's it.

But if you know how to recompile kernels, just disable swaret from updating kernel by adding
EXCLUDE=kernel
in /etc/swaret.conf

tgz is the same as .tar.gz. In slackware, binary packages are packed as .tgz, same as you have .deb for debian, or .rpm for redhat.

edit: you can still compile a program from scratch if you wish.. Don't forget to use checkinstall though, to make life easier when you want to uninstall/upgrade

but .tgz packages make life easier by letting someone else do the compiling and testing for you, and all you have to do is just
installpkg mypackage.tgz
=)

official packages are in
http://slackware.com/pb

and unofficial but trusted ones can be found in
http://linuxpackages.net

Last edited by xushi; 01-30-2005 at 06:35 AM.
 
Old 01-30-2005, 06:39 AM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Thanks for the help!

Then it looks like manually configuring them when I have time. I like to know which options are on and which aren't at times.

*runs off, downloading slack now
 
Old 01-30-2005, 06:49 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
I still suggest you use something like swaret or slapt-get, unless you wantn to manually download and upgrade all this every day
http://slackware.com/changelog/current.php?cpu=i386
=)

And if you can wait a few days, then try to. Because Slack 10.1 will be out very soon.
 
Old 01-30-2005, 10:33 AM   #7
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
LOL that's quite a list to do manually

What's the difference between 10.0 and 10.1 then? Can't it be upgraded automatically?
 
Old 01-30-2005, 11:40 AM   #8
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
It can, but there were a few important updates that needed a bit of tweaking.. Like the switch from XFree86 to Xorg.

Can't remember any more.. but you can very well install 10, and upgrade to 10.1, but its not really recommended.. i meen you'll end up downloading a whole CDs worth of upgrades in the proccess!

just wait a few days, or you can use an unofficial slackware current ISO like in
ftp://ftp.slackware.no/linux/ISO-im...rrent-ISO-build
ftp://inferno.bioinformatics.vt.edu...re-current-iso/
 
Old 01-30-2005, 12:49 PM   #9
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
I'll keep a minimal system so it won't be that much I hope or is it?
 
Old 01-30-2005, 02:21 PM   #10
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Original Poster
Rep: Reputation: 45
Hmm looks like the download which was halfway through already when you posted about slack 10.1 hanged while putting it in my home folder or something so I have to redownload probably anyway. I'll wait then
 
Old 02-03-2005, 04:53 PM   #11
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,722

Rep: Reputation: 176Reputation: 176
Upgrades: I use the "official" tools.
In fact, I use a cronjob for wget to download all updates, and then run upgradepkg on all of them. No problems whatsoever.

Upgrading from 10.0 to 10.1 will take a little while, but it probably will be a smooth upgrade. In fact, I don't know another distro where upgrades are so smooth over many years. Just follow the instructions in a text file UPGRADE.txt, that comes with every release of Slackware.

BTW, the transition from XFree86 to Xorg was from 9.1 to 10.0, so it won't cause upgrade problems going from 10.0 to 10.1.

gargamel
 
Old 02-04-2005, 10:03 PM   #12
koyi
Member
 
Registered: Jul 2003
Location: Osaka, Japan
Distribution: Arch, Ubuntu
Posts: 421

Rep: Reputation: 31
Quote:
Originally posted by gargamel
Upgrades: I use the "official" tools.
In fact, I use a cronjob for wget to download all updates, ...
Would you please post the shell script(?) you run to achieve this?
I am pretty interested in doing things this way.

A general question about upgrading in slackware:

Is the following statements correct?

1) When I want to stick to a stable release(say, 10.0) after a fresh install, I will download all the updated packages in "slackware-10.0/patches/packages/" and run upgradepkg on them.

2) When I want to upgrade to a later release(say, 10.1 when it is officially out) from the above updated system, I would read the UPGRADE.TXT in the 10.1's installation disc and follow what Pat says.



Thanks.
 
Old 02-05-2005, 08:16 AM   #13
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 5,639

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
I too would be interested to see the script, being tired of scripts like swaret which do a lot
of useless stuff.

I have some concept ideas though,
- set a mirror
- download latest Changelog
- grep for newer packages, search if they're installed, if yes download the newer versions

That should be all, for a minimalistic automatic upgrade script but I would appreciate
other ideas from slackware user to help to think of the perfect upgrade tool
 
Old 02-05-2005, 02:29 PM   #14
major.tom
Member
 
Registered: Jun 2003
Location: Canada
Distribution: Slackware (current); Gentoo (newbie)
Posts: 142

Rep: Reputation: 15
I do something similar to gargamel above. I have 2 scripts. The 1st (in /etc/cron.daily) runs swaret just to list the packages available for update and mail it to me. The 2nd (in /etc/cron.weekly) uses rsync to download the latest "snapshot" of slackware-current. I also frequently check the Changelog to see if there are any security fixes/gotchas or generally higher-priority items (apache, for example).

In case anyone's interested, here are the 2 scripts:

/etc/cron.daily/swaret-check.sh
Code:
#!/bin/sh

LOGFILE='/var/log/swaret-update'
NOUPDTSTR='Installed Packages are up-to-date!'
EMAIL='<enter your e-mail address>'

echo -e $(date) "\n"       >  $LOGFILE

/usr/sbin/swaret --update  >> $LOGFILE 2>> $LOGFILE &&
/usr/sbin/swaret --list -u >> $LOGFILE 2>> $LOGFILE

echo -e "Done.\n" >> $LOGFILE

# Mail the list of packages that need upgrading to a sysadmin
if test `cat $LOGFILE 2>/dev/null | grep "$NOUPDTSTR" | wc -l` -eq 0;
then
  mutt -s "Swaret Update" -r "swaret@quixote" $EMAIL < $LOGFILE
fi
/etc/cron.weekly/rsync-slack-current.sh
Code:
#!/bin/sh

LOGFILE='/var/log/rsync-slack.log'
ERRFILE='/var/log/rsync-slack.err'

SRC='rsync.slackware.no/slackware/slackware-current/'
DEST='/pub/slackware'

echo -e $(date) "\n" > $LOGFILE
cp $LOGFILE $ERRFILE

# note: you may wish to add/remove --exclude items
rsync -r -v --stats --delete \
  --exclude=/extra/ \
  --exclude=/pasture/ \
  --exclude=/source/ \
  --exclude=/testing/ \
  --exclude=/slackware/e/ \
  --exclude=/slackware/gnome/ \
  --exclude=/slackware/kde/ \
  --exclude=/slackware/kdei/ \
  rsync://$SRC $DEST >> $LOGFILE 2>> $ERRFILE

echo -e "Done!\n" >> $LOGFILE
echo -e "Done!\n" >> $ERRFILE
Garry
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Stupid newbie question on Slackware package management infornography Linux - Newbie 3 09-30-2005 09:34 AM
Using Package Archive style package management mugwump84 Linux From Scratch 3 08-25-2005 06:19 PM
9.2 package management Icarus315 SUSE / openSUSE 1 01-15-2005 07:12 AM
Package management question. praveenk Slackware 3 10-17-2003 03:46 AM
Package Management Question jlangelier Slackware 2 07-15-2003 07:41 PM

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

All times are GMT -5. The time now is 05:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration