• Successful_Try543@feddit.org
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    12 hours ago

    @fluckx@lemmy.world

    dpkg doesn’t resolve dependencies (that’s a feature of apt) which means that if you install a Debian package with dpkg, you’ll have to manually install all dependencies first, and they won’t be marked as automatically installed

    Usually installing a manually downloaded package and its dependencies works like this:
    # dpkg -i package-file.deb
    # apt-get -f install

    So apt-get can be used to install missing dependencies afterwards while marking them as automatically installed.

    • dan@upvote.au
      link
      fedilink
      arrow-up
      3
      ·
      7 hours ago

      That works, but why do that when you could just do apt install ./package-file.deb?

      • Successful_Try543@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        7 hours ago

        Sure, but as I understood, the question was how to do that “properly” with dpkg and apt-get, i.e. without the ‘new’ apt script.