Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

debs from source and apt-get upgrade

  • 08-04-2014 05:18PM
    #1
    Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭


    So I built a package from the deb source. This produced a bunch of .deb files, each of which would have been equivalent in release number to whatever is in the ubuntu repos. I installed these with dpkg.

    Still though, when I do an apt-get upgrade, it lists the package I built from source and just installed. Obviously I don't want to install this as it will overwrite the version I built from source. Two questions:

    1) Why is it listing it? It should not be seen as an updated version
    2) How can I stop it? (I still want it to warn me when there are new upstream versions however).


Comments

  • Registered Users, Registered Users 2 Posts: 1,929 ✭✭✭PrzemoF


    I hope I understand what you need :-)
    Have you seen this: https://help.ubuntu.com/community/PinningHowto ?


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    Khannie wrote: »
    So I built a package from the deb source. This produced a bunch of .deb files, each of which would have been equivalent in release number to whatever is in the ubuntu repos. I installed these with dpkg.

    Still though, when I do an apt-get upgrade, it lists the package I built from source and just installed. Obviously I don't want to install this as it will overwrite the version I built from source. Two questions:

    1) Why is it listing it? It should not be seen as an updated version
    2) How can I stop it? (I still want it to warn me when there are new upstream versions however).

    Not quite sure what you mean by it "listing the package", but I think what you want is to put the package on hold. When a package is on hold dpkg / apt-get won't install/update the package.

    in Ubuntu: aptitude hold package-name
    In debian: echo “nmap hold” | dpkg --set-selections


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    By listing the package I mean that when I run apt-get upgrade and it shows the list of packages that it's going to install, the one I just built and installed is in that list (though as I understand it the version should exactly match what I just built and installed).

    I could pin it, but if I do I wont get any notification of security updates.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    OK, I've hit this wall again. I have built a package from source, got a deb and installed that deb. Now apt-get update wants to overwrite it. How can I make it realise that it already has the latest version?


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    OK, I can put the package on hold then do the upgrade of other software updates without overwriting the install I did from source, but it leaves the issues of:

    1) apt-get doesn't seem to realise that the installed version is current
    2) If there are any security updates published upstream, I wont be aware that I need to do a new build


  • Advertisement
Advertisement