Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I prefer to install my own version of Firefox. How can I tell apt to never attempt to upgrade it, even if i type "apt-get update ; apt-get upgrade" later?

Edit: Okay, so dpkg -l firefox prints this:

ii  firefox   3.0.3+nobinonly-0ubuntu2   meta package for the popular mozilla web browser

So I added this to my prefs:

Package: firefox
Pin: version 3.*
Pin-Priority: 1000

But apt-get upgrade still prints:

The following packages have been kept back:
    (nothing related to firefox)
The following packages will be upgraded:
    (blah blah blah)
    firefox firefox-3.0 firefox-3.0-branding firefox-3.0-gnome-support 
    firefox-gnome-support
    (blah blah blah)

I also tried making the package "*firefox*", but that didn't work either.

share|improve this question

4 Answers 4

Add the following to /etc/apt/preferences

 Package: iceweasel 
 Pin: version 3.0.6*
 Pin-Priority: 1000
share|improve this answer
    
So if apt thinks I'm running 3.0, but I'm actually running 3.5, what do I put? –  mike Jul 8 '09 at 18:52
    
Use 3.* for the version - the wildcard will match both. –  Matt Jul 8 '09 at 18:57
    
Hmm. That doesn't seem to be working. See edit. –  mike Jul 8 '09 at 19:02

To put a package to hold:

echo "package_name hold"|dpkg --set-selections

to 'unhold' it: echo "package_name install"|dpkg --set-selecions

To see what your packages on hold are, do an:

dpkg --get-selections | grep hold

share|improve this answer

You need to pin the package. Put an entry like this in /etc/apt/preferences. You'll need to adjust the version number etc.

Package: mozilla-firefox
Pin: version 1:3.5.*
Pin-Priority: 1000
share|improve this answer
    
So if apt thinks I'm running 3.0, but I'm actually running 3.5, what do I put? –  mike Jul 8 '09 at 18:51

Have a look at (the complex) section 3.10 of the apt how-to: http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html. That may help.

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.