you are viewing a single comment's thread
view the rest of the comments
[–] 10 points 1 year ago* (last edited 1 year ago) (3 children)

apt and apt-get both use dpkg internally, but these days it's essentially seen as an implementation detail that regular users don't need to know about.

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 (so autoremove won't remove them if they're not needed any more). Using apt solves that.

The web suggests dpkg because either the articles are old, or they're based on outdated knowledge :)

  • source
  • parent
  • hideshow 3 child comments
  • [–] 3 points 1 year ago* (2 children)

    @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.

  • source
  • parent
  • hideshow 2 child comments