Updating Slackware using Swaret

Posted: March 11, 2009 in Slackware

Update slackware using swaret

download swaret

wget http://internode.dl.sourceforge.net/sourceforge/swaret/swaret-1.6.3-noarch-2.tgz

than install using

# installpkg swaret-1.6.3-noarch-2.tgz

Rename the conf file located in the /etc folder:

# cp /etc/swaret.conf.new /etc/swaret.conf

Next, set the version of Slackware you wish to keep on your computer. You can set it to 11.0 or current. Current is the most up-to-date version, and it may be unstable and could pose problems, but it should be easier to upgrade to the next version when it rolls out. I keep some servers on current and others, the ones I consider critical, on 11.0:

# swaret --set VERSION=current

Now you can update the list of packages Swaret uses:

# swaret --update

When that command completes successfully you can run the upgrades. You can use the -a switch to automatically install all new updates without being prompted, or use no switch to be prompted for each package update:

# swaret --upgrade

Since version 11.0 has just come out there won’t be many updates right away, so don’t expect much at first.

You can also use Swaret to install programs that were not installed originally by using this command (replace package-name with the actual name of the package):

# swaret --install package-name

or you can use cron to update your slackware

——————————-cut here ——————————

# this will download the update files needed to upgrade
swaret --update
# this will update all the packages automatically
swaret --upgrade -a
# send an email notifying that the update was complete
echo "The updates were completed" | mail -s "Swaret Update" username

——————————-cut here ——————————

Be aware that this will install all the update packages automatically, whether you want them or not.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s