Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

For personal reasons, I want to prevent chrome/chromium from ever being installed on my computer.

I'm looking for something as extreme as locking it down with a password and then throwing away that password. That would ensure I'm never going to get it installed. Obviously I could do that with my root password, but lets be serious :P I need that password for other things too

share|improve this question
    
But that's exactly the problem. I want to prevent myself from installing chrome. My self control is non-existent right now and I need to implement some drastic measures until I learn how to get it back –  TheIronKnuckle Mar 26 '13 at 21:35
1  
Only thing I can think of is to make a dummy chrome/chromium package and give it an absurdly high version number. Then you install the dummy package, and in the future whenever something tries to install chrome it'll be prevented because you have a "newer" version of chrome installed. I can't remember how to do this off the top of my head so you'll have to research it yourself or wait for someone else to help you. –  japzone Mar 26 '13 at 23:24
    
Legend, will do both this and tumbleweeds answer. Also why the downvote :( –  TheIronKnuckle Mar 28 '13 at 4:35

1 Answer 1

This can be done with APT pinning.

Create /etc/apt/preferences.d/we-hate-chromium with the contents:

Package: chromium
Pin: origin ""
Pin-Priority: -1

A negative priority causes the package to never be installed by APT. (It can still be installed directly with dpkg, though.

share|improve this answer

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.