HumBo - Update Slackware ARM


Updating Slackware ARM packages

To keep your Slackware ARM Linux system totally updated and current, with the latest releases of packages, there's a neat tool called 'slackpkg' which is included as standard, with every modern version of Slackware.

Type 'slackpkg help' at the command prompt.

You will read on your screen that slackpkg is asking you to edit a file containing mirrors of Slackware ARM Linux repositories. This file can be edited easily using 'nano', a simple text-editor included with Slackware. Type the following command to edit the slackpkg mirror file:

root@humbox:~# nano -w /etc/slackpkg/mirrors

You are required to edit/unhash/uncomment one of the lines (and ONLY one line) which is the address of the Slackware ARM repository pertaining to the version of Slackware you have installed. For the purposes of this guide, we installed Slackware ARM 14.1 so the line we will edit is the FTP server address for Slackware ARM 14.1, of course. If you want to download and install the very latest cutting-edge updates on your brand new Linux system so you can play around and do some testing then you could select one of the Slackware ARM current FTP servers here. Please note: if you want to keep it safe, you should specify the same version of Slackware ARM you have installed when choosing a mirror.

Notice in the screenshot above we have removed the '#' from the beginning of the line that is the FTP server address for a Slackware ARM 14.1 repository. If you've installed Slackware ARM current then you need to remove the '#' from the beginning of the line containing a FTP server address for version current. As already stated, ONLY remove the '#' from one server address. This is what slackpkg needs you to do before you can download and install any updates.

Once you have correctly edited the slackpkg mirrors file, you need to save and exit that file. Do this by pressing and holding the CTRL key and pressing the 'X' key at the same time. You will be asked to 'Save modified buffer?' at which point you just press the 'Y' key followed by the enter key to save the file under the same filename. Now type the following on the command line:

root@humbox:~# slackpkg update

The results of running this command should be something similar to the following:

Next you need to tell slackpkg to upgrade any and all of your existing packages if updates exist. Do this by typing the following at the command prompt:

root@humbox:~# slackpkg upgrade-all
FatDog says ... If you get a message at this point that tells you there are duplicate packages installed on your system, choose 'R' and keep the latest versions and remove any older ones.

Now you should see a screen similar to the one below. Navigate through the list of available updated packages using the up/down cursor keys (these will be installed if they have a '*' at the side of them) and select/deselect using the space bar. When you have chosen the packages you wish to upgrade press the enter key, making sure < OK > is highlighted at the bottom. You can switch between < OK > and <Cancel> using the left/right cursor keys.

The packages you have selected will be upgraded, one after another if you selected more than one, until all selected updates have been installed.

In our example there are .new files found. When there are .new files found, and you are following this tutorial, you may be prompted to Overwrite the configuration file(s). It's safe to do so at this stage.

FatDog says ... NB: Please note that up to this point you have not made any changes to your configuration files. When changes to your configuration files have been made, by choosing Overwrite, be aware that your current settings may revert back to their defaults!

When slackpkg has finished updating, your Slackware Arm Linux system should now be fully up-to-date with the latest available packages. You can run slackpkg anytime from the command prompt (as 'root' user) and install any new packages as and when they become available. If any errors occured you will be shown an error log at the end of the process.

When you're done with updating, continue to the next section... What to do now.