Archive for March 11, 2009

$ sudo nano -wx /etc/slapt-get/slapt-getrc

than chage to this (copy and paste)

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

# See /usr/doc/slapt-get-0.10.1/example.slapt-getrc
# for example source entries and configuration hints.

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

Updating Slackware using Swaret

Posted: March 11, 2009 in Slackware

Update slackware using swaret

download swaret


than install using

# installpkg swaret-1.6.3-noarch-2.tgz

Rename the conf file located in the /etc folder:

# cp /etc/ /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.