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

  • thingsiplay@beehaw.orgOP
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    5 days ago

    No, pacman -S package is safe. Because the package list is not updated this way, and therefore the system is not updated and nothing else is affected. New packages can be installed with this command, perfectly okay. That is in the spirit of Archlinux.

    I think my idea would not work because the nature of the command -S package, as no new version would be synced. This is not a partial upgrade and it does not need to be discouraged.

    • Strit@lemmy.linuxuserspace.show
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      4 days ago

      No, pacman -S package is safe. Because the package list is not updated this way, and therefore the system is not updated and nothing else is affected. New packages can be installed with this command, perfectly okay. That is in the spirit of Archlinux.

      If the package is not in your cache, it needs to download it from the remote server first. The version on the remote server is built against the dependencies on the remote server. So if your local dependency is older, it will be a partial update!