Results 1 to 3 of 3

Thread: apt-get blacklist

  1. #1
    Join Date
    Aug 2007
    Location
    /dev/null
    Beans
    444
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    apt-get blacklist

    I've run into some issues with samba that require me to keep an older version on my systems - however, whenever I try to apt-get upgrade, it wants to replace them with the current versions...which don't work for me.

    Is there a way of blacklisting these packages so that when I try to upgrade via apt-get, it'll ignore them and process the rest? A text file or something somewhere?

    I tried locking the packages in Synaptic, but that didn't seem to do anything to apt-get. Also...I don't even have Synaptic on my older laptop, so even if that fix did work, it still wouldn't really help me.

  2. #2
    Join Date
    Mar 2006
    Location
    Saint Petersburg, FL
    Beans
    1,123

    Re: apt-get blacklist

    Quote Originally Posted by eriqjaffe View Post
    I've run into some issues with samba that require me to keep an older version on my systems - however, whenever I try to apt-get upgrade, it wants to replace them with the current versions...which don't work for me.

    Is there a way of blacklisting these packages so that when I try to upgrade via apt-get, it'll ignore them and process the rest? A text file or something somewhere?

    I tried locking the packages in Synaptic, but that didn't seem to do anything to apt-get. Also...I don't even have Synaptic on my older laptop, so even if that fix did work, it still wouldn't really help me.
    Yes there is just run the following:

    Code:
    echo "foo hold" | sudo dpkg --set-selections
    and that will hold the current package and not allow an update with apt-get unless it's a dist-upgrade. Now of course replace 'foo' with the name of your package. More info on the powerful apt-get package management tools can be viewed here:

    https://help.ubuntu.com/community/Ap...=%28apt-get%29

    and here:

    http://www.debian.org/doc/manuals/ap.../index.en.html
    For those new to Ubuntu most of your answers can be found at help.ubuntu.com or ubuntuguide.org

  3. #3
    Join Date
    Aug 2007
    Location
    /dev/null
    Beans
    444
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: apt-get blacklist

    Thank you, I missed that page.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •