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

Monday, October 17, 2011

Running google-chrome browser on Scientific Linux

You feel the title looks ordinary..yes it is and it;s my lack of observation caused this hindrance.


The problem: As far as I am concerned SL not come with google-repository with it. So I went ahead and installed it like most of the RH system do.Yep, SL is a clone of RH system.

The repo looks like below:


bhaskar@Scientific-Linux_11:22:47_Mon Oct 17:~> sudo cat /etc/yum.repos.d/google.repo
[sudo] password for bhaskar:
[google]
name=Google - i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub


and


bhaskar@Scientific-Linux_12:06:07_Mon Oct 17:~> sudo cat /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/i386
enabled=1
gpgcheck=1


Then as usual do the following to install it:

bhaskar@Scientific-Linux_12:06:33_Mon Oct 17:~> sudo yum install google-chrome-stable
Loaded plugins: refresh-packagekit
Setting up Install Process
Package google-chrome-stable-14.0.835.202-103287.i386 already installed and latest version
Nothing to do


So what's the big deal???

If I clicked my google-chrome icon on panel and menu it won't respond!!! irk..So the as usual get into the terminal and paved into the google-chrome dir..and try to fire from the terminal gave me some library not recognizing error..which I resolve by this:


sudo yum install zlib-devel jzlib



Now ,still it's not opening up!! why? After bit of search(and my lack of interest to digg it in the system,which is bad) reveal that in this thread that it is a SELinux ,which prohibiting it from running. You can find the thread here: http://code.google.com/p/chromium/issues/detail?id=87704

Okay, then the obvious next step it correct the SELinux tag for google-sandbox,as mentioned in the thread...


bhaskar@Scientific-Linux_12:17:22_Mon Oct 17:~> sudo chcon -t usr_t /opt/google/chrome/chrome-sandbox


Voila! it is working fine now..what a real laziness can do..very bad of me ahh


Hope this will help.

Cheers!
Bhaskar