Step by step:
- go to www.swaret.sourceforge.net
- There is a download-link. Click it.
- Download swaret-1.6.2-noarch-1.tgz.tar
- Do NOT extract this tar archive !
- Instead of extracting this tarball, RENAME the file: mv swaret-1.6.2-noarch-1.tgz.tar swaret-1.6.2-noarch-1.tgz
- Now you can install the package: installpkg swaret-1.6.2-noarch-1.tgz
- Rename the Swaret Cnfigfile: mv /etc/swaret.conf.new /etc/swaret.conf
- Edit the file to fit your needs: mcedit /etc/swaret.conf
( or use your favourite editor instead of mc )
Editing the swaret.conf:
The swaret.conf is well commented, so you just have to read what it says to give it the right settings. Here is how I do it.
Set the $VERSION
to whatever you need ( I´d recommend $VERSION=current
The swaret.conf already includes some good mirrors. You do not need to change anything there, but you can add some additional mirrors of your choice ( do not go straight to the Slackware mirrors ! )
IMPORTANT: Since the old swaret website is down, you have to edit the DEP_ROOT ( Dependency Root )
Set it to: DEP_ROOT=http://swaret.sourceforge.net/libraries-$VERSION
If you use slocate
to find files on your machine ( highly recommended ) you should tell Swaret to also use slocate
instead of find
( slocate is much faster )
For doing so, edit the line DESEARCHM=1
Save the changes and quit the editor.
Swaret is now ready to start, but before we do so, we have to update the slocate database: updatedb
If this gives you a warning about a missing file /var/lib/slocate/slocate.db
it means you have startet slocate for the first time. Don´t worry about this warning, you wont see it again because the file does exist now.
( /var/lib/slocate/slocate.db is the slocate Database file )
Now you can start using swaret:
will give you a short overview about the options.