Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to manually update chromium with Chromium Updater.

It gives me a chrome-linux.zip.

You can extract that, then run /.chrome to run it, it runs fine.

Now the question is - where do I install it?

This question suggests using either /usr/opt or /usr/local.

So I can move the folder there using sudo. Now to run the software I need to use sudo, other wise I get permission denied.

This seems like the wrong way to be doing things. You shouldn't have to be a superuser to run the software.

share|improve this question
    
Simplest solution is sudo chown -R <user> <directory>, where <user> is your username and <directory> is the chromium directory. The proper way to do it would be to assign the correct permissions - I would say 755, but I don't know if chromium needs write permissions. –  user55325 Nov 15 '12 at 5:39
    
@user55325 - so I go sudo chown -R dave /usr/opt/bin/chrome-linux/chrome it accepts that. /usr/opt/bin/chrome-linux/chrome - permission denied. sudo /usr/opt/bin/chrome-linux/chrome will work - but will give me a pop error saying 'can't run as root'. –  user1068446 Nov 16 '12 at 10:07
    
google "how list all files in package on MYDISTRO" - that is where your browser is installed, unless you installed it manually. –  Ярослав Рахматуллин Nov 16 '12 at 20:07
add comment

1 Answer

If possible, stick to your distro's package management facilities such as apt, yum, portage. Otherwise, make sure that the installed binaries are executable by your target audience:

chmod 755 /opt/bin/chrome # this will do the trick.

adjust the path of the binary as needed.

Also I think you should consult the documentation of the installer because setting correct permissions is one of its responsibilities. I'm willing to bet Google didn't screw this one up (but you may never know).

Update

The easiest way to upgrade your chrome is to download and extract the updater archive to a temporary location and then to copy the files over to the installation folder. The installation folder will vary depending on where the user installed the browser manually or where the distro's package put it. On Gentoo, Chrome lives in /opt/google/chrome. I sucessufully upgraded my copy of chrome from version 21 to 25 using the following commands:

cd /tmp
wget http://commondatastorage.googleapis.com/chromium-browser-continuous/Linux/168203/chrome-linux.zip 
unzip chrome-linux.zip
rsync -rEp chrome-linux/ /opt/google/chrome/
rm chrome-linux.zip

This method assumes that a working copy of chrome is installed and copies all files in the update folder while preserving the permissions executability in the original folder. I suggest you use your package manager to re-install chrome before doing the above as root.

Here is what I see in the about dialog, prior to and after the above steps:

before after

share|improve this answer
    
There is no installer. It's a zipped folder with an executable /.chrome. –  user1068446 Nov 15 '12 at 6:19
    
so put it where it belongs and make it executable. google file permissions unix or man chmod. –  Ярослав Рахматуллин Nov 15 '12 at 6:23
    
sudo /usr/opt/bin/chrome-linux/chrome will run the program but then gives me a 'cannot run as root' error. sudo chmod 755 /usr/opt/bin/chrome-linux/chrome - works. No message displayed. now /usr/opt/bin/chrome-linux/chrome - Permission denied. –  user1068446 Nov 16 '12 at 10:02
    
It usually means that you cannot read some file. When you post an error message, you should include what generated it (copy - paste). It may be the case that the folders where the file is are not readable by your regular user. Try chmod 755 on /usr/opt/chrome-linux –  Ярослав Рахматуллин Nov 16 '12 at 13:02
    
^Same problem. bash: /usr/opt/bin/chrome-linux/chrome: Permission denied –  user1068446 Nov 16 '12 at 18:25
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.