On Archlinux it is not recommended to update only one package with the package manager pacman. Let’s say I have 11 packages, and one of them is extra/firefox (true story). Updating only a pacman -S firefox could introduce problems, but installing a new single package if it wasn’t there is okay.

So my question is, could we get around this by removing and installing the same package again in one go: pacman -Rs firefox && pacman -S firefox

  • Aatube@kbin.melroy.org
    link
    fedilink
    arrow-up
    4
    ·
    2 days ago

    If you have not ran a database update (any y after -Sy), pacman will fetch the version that is compatible with your _ current_ installed dependencies.

    • Strit@lemmy.linuxuserspace.show
      link
      fedilink
      arrow-up
      2
      ·
      20 hours ago

      The remote server only has the latest version of the package, and the latest version is always built against the dependencies on the remote server. So if you didn’t update the database, then your pacman -S command will fail, because it can’t find the package version on the remote server. So you did not install anything.