Skip to content

Instantly share code, notes, and snippets.

@ktprezes
Last active July 20, 2023 01:29
Show Gist options
  • Save ktprezes/2e752cbe4b3e0e5b61adf61bd6169aae to your computer and use it in GitHub Desktop.
Save ktprezes/2e752cbe4b3e0e5b61adf61bd6169aae to your computer and use it in GitHub Desktop.
Linux - bash - pacman - update packages FROM SPECIFIC REPOSITORY ONLY
/*
* Linux, bash, pacman
* how to upgrade packages only from specific repository - eg. 'core'
* of course you can change 'core' to any other desired ;)
*/
pacman -S --needed $(comm -12 <(pacman -Qq | sort) <(pacman -Slq core | sort))
/*
* longer description of this command - see:
* https://github.com/ktprezes/just-some-notes/blob/master/Linux/linux-pacman.md#specificrepoupdate
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment