update pacman

main
Tran Hau 2020-03-28 21:49:28 +07:00
parent 1675550614
commit ad908796d9
1 changed files with 7 additions and 5 deletions

View File

@ -4,9 +4,7 @@ Assume you use Archlinux.
Read [pacman](https://wiki.archlinux.org/index.php/pacman).
Read [Mirrors](https://wiki.archlinux.org/index.php/Mirrors).
Uncomment/add options in `/etc/pacman.conf`:
Uncomment or add if not exist options in `/etc/pacman.conf`:
```txt
# Misc options
@ -14,8 +12,12 @@ Color
ILoveCandy
```
Read [Force pacman to refresh the package lists](https://wiki.archlinux.org/index.php/Mirrors#Force_pacman_to_refresh_the_package_lists) and [Removing unused packages (orphans)](<https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Removing_unused_packages_(orphans)>):
Read [Mirrors/Force pacman to refresh the package lists](https://wiki.archlinux.org/index.php/Mirrors#Force_pacman_to_refresh_the_package_lists).
Read [pacman/Tips and tricks/Removing unused packages (orphans)](<https://wiki.archlinux.org/index.php/Pacman/Tips_and_tricks#Removing_unused_packages_(orphans)>).
Upgrading packages:
```sh
sudo pacman -Syyuu && sudo pacman -Rns $(pacman -Qtdq) || true
sudo pacman -Syu
```