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
    4
    arrow-down
    5
    ·
    2 days ago

    That is not true. Installing a package with sudo pacman -S package without updating the package list is totally supported and works without problems. Whats not recommended is to installing package and updating package list with -Sy package. So instead we should do -Syu package and update everything on the system alongside the package.

    Maybe if the package list is old, then -S package it will only install from cache? Could it be that?

    • FishFace@lemmy.world
      link
      fedilink
      arrow-up
      6
      ·
      2 days ago

      Yes, pacman -S package will install the version of the package that is listed in the current package database, and will not do anything to update that database.