Pages

Unixbhaskar's Blog

Thursday, October 27, 2011

How to update/upgrade Slackware packages from command line

Yep that is the case.Basically you need to follow just two steps to do that. I am going to show you that.I am doing it on Slackware 13.37 version.But the basic remain the same.So here we go:

First and foremost update the existing one; if any pending issue are there ,then it will get resolve.



root@Slackware:~# slackpkg update


It will pop up a TUI and ask for package updation,need to select and press ok.Once that operation done.Go to the next step by doing so..


root@Slackware:~# slackpkg upgrade patches


At the end of this operation it will ask you like this :


Searching for NEW configuration files

Some packages had new configuration files installed.
You have four choices:

(K)eep the old files and consider .new files later

(O)verwrite all old files with the new ones. The
old files will be stored with the suffix .orig

(R)emove all .new files

(P)rompt K, O, R selection for every single file

What do you want (K/O/R/P)?



Now it's your call to take,whether you want to do it by hand or the package manager do it for you. I had little to do this specific upgrade so I went for interactive way; like this :


Select what you want file-by-file

/etc/uniconf.conf.new - (K)eep
(O)verwrite
(R)emove
(D)iff
(M)erge
o

/etc/httpd/httpd.conf.new - (K)eep
(O)verwrite
(R)emove
(D)iff
(M)erge
0 -------------------> my selection

/etc/gconf/2/path.new - (K)eep
(O)verwrite
(R)emove
(D)iff
(M)erge
o -----------------------> my selection

/etc/gconf/2/evoldap.conf.new - (K)eep
(O)verwrite
(R)emove
(D)iff
(M)erge
o ------------------> my selection



But for huge upgrade, you should fall back to package manager to do the job for you.Or you are curious(you should be!) then do it by hand, and it will take some amount of time.

Hope this will help.

Cheers!
Bhaskar

No comments:

Post a Comment

Post a Comment