somoly.tistory.com

Install packages

pacman -S package_name1 package_name2 ...

 

Remove an installed package

pacman -R package_name

 

To remove a package and its dependencies which are not required by any other installed package

pacman -Rs package_name

 

Upgrading packages

  • S stands for sync
  • y is for refresh (local cache)
  • u is for system update
pacman -Syu

 

Use pacman to search for packages

pacman -Ss string1 string2 ...

 

To search for already installed packages

pacman -Qs string1 string2 ...

 

To search for package file names in remote packages

pacman -F string1 string2 ...

 

To view the dependency tree of a package

pactree package

 

Cleaning the package cache

paccache -r

 

Installing local or third-party packages

Install a ‘local’ package that is not from a remote repository

 

pacman -U /path/to/package/package_name-version.pkg.tar.xz

 

Install a ‘remote’ package, not contained in an official repository

pacman -U http://www.example.com/repo/example.pkg.tar.xz

 

profile

somoly.tistory.com

@RxCats

포스팅이 좋았다면 "좋아요❤️" 또는 "구독👍🏻" 해주세요!