The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    where to blacklist a program from updating /jaunty

    Discussion in 'Linux Compatibility and Software' started by theZoid, Aug 16, 2009.

  1. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    I did an alien install of a new kompozer build (64 bit) because while updating my website kompozer 7.10 kept crashing while changing fonts. Update wants to install the repo version which I didn't think would happen and subsequently hoses my kompozer 8 install. Where is the file to blacklist kompozer from updating? thanks
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    If you're using Synaptic find the package with Ctrl+F, click it to select and go to the Package menu and select Lock Version.

    You can also do it from the command line with
    Code:
    sudo aptitude hold packagename
    Change hold to unhold to undo it.
     
  3. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    Gracias !! That was I was looking for. In Slackware, it's a blacklist command...never done in a 'buntu. thanks again !!

    EDIT: that works for aptitude and synaptic...but apt still wants to downgrade it to repo version....know this one?
     
  4. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Ah, sorry. Apt requires using the old way, which is:

    Code:
    echo "packagename hold" | sudo dpkg --set-selections
     
  5. theZoid

    theZoid Notebook Savant

    Reputations:
    1,338
    Messages:
    5,202
    Likes Received:
    22
    Trophy Points:
    206
    Good man....Muchos Gracias Senor !! That kept it back from upgrading.

    +1 no one seems to rep anymore around here :)
     
  6. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Hey thanks for the rep :)

    To unhold a package with apt:
    Code:
    echo "packagename install" | sudo dpkg --set-selections
    To list which packages are on hold:
    Code:
    dpkg --get-selections | grep hold
    The same, for aptitude:
    Code:
    aptitude search ~ahold
     
  7. joeelmex

    joeelmex Notebook Evangelist

    Reputations:
    229
    Messages:
    518
    Likes Received:
    1
    Trophy Points:
    31
    Man shows how behind I am, wish I could understand those commands.
     
  8. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Here's a summary...

    | means 'pipe', send the output (STDOUT) of one program to the input (STDIN) of the next.

    grep searches for patterns in a file, or stdin if no file is specified.

    dpkg is the package utility, apt is a frontend to dpkg so we use dpkg to prevent apt from updating certain packages in this case.

    From the dpkg man page (type man dpkg to read the full page):
    The aptitude commands should be self-expanatory. For the last one which searches for packages on hold, see file:///usr/share/doc/aptitude/html/en/ch02s03s05.html and notice: