Results 1 to 4 of 4

Thread: Marking a package as not explicitly installed, but keep it as an installed dependency

  1. #1
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Arrow Marking a package as not explicitly installed, but keep it as an installed dependency

    Hi Everyone,

    I've already posted the following question in the "Installation & Upgrades" support category, but it might be going too much into the package-manager details so I'm trying here, too.

    Due to a bad internet connection, I had to install a piece of software by downloading the two .debs and installing them with dpkg -i.

    So I have a package A that depends on B, and I've installed them both by hand.

    Now what I want is that if at some point, I remove A, then B gets flagged as a package that is no longer needed, and gets removed, too. How do I flag package B so that the package manager thinks that B is only installed because it is a dependency. Note that I don't want to remove A or B at this point, it is just that when I decide to remove A at some point, then B should be removed automatically as well (at least when I do apt-get autoclean).

    Thanks!

  2. #2
    Join Date
    Dec 2008
    Beans
    69

    Re: Marking a package as not explicitly installed, but keep it as an installed depend

    http://ubuntuofflineinstall.com/
    or click to blog link.

  3. #3
    Join Date
    Sep 2009
    Beans
    1,293

    Re: Marking a package as not explicitly installed, but keep it as an installed depend

    Have a look at
    Code:
    $ apt-mark auto <package>
    or older apts use
    Code:
    $ apt-get markauto <package>
    Might be what you're looking for

  4. #4
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: Marking a package as not explicitly installed, but keep it as an installed depend

    @SevenMachines: Thanks a lot. This is *exactly* what I was looking for.

    @tienlbhoc: Thanks for your input. It was unfortunately a pay-for application from the pay-part of the Ubuntu software center that I was concerned with. Your solution thus wouldn't work. Also, it would mark all packages as manually installed, which was what I wanted to avoid (the dpkg option --force-depends might have fixed that, though - it is however undocumented, so I cannot check).

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
  •