Manage Package or Clean Arch after update

1. Clean package cache:
$ sudo pacman -Sc

2.Remove unused packages:
$ sudo pacman -Rns $(pacman -Qdtq)

3.Fully remove a Package with unrequire dependencys
$ sudo pacman -Rns PAK_NAME

4. get list of package with description
```
for package in $(pacman -Qetq); do
    description=$(expac -S '%d' $package)
    echo "$package: $description"
done > explicitly_installed_packages_with_descriptions.txt
```
5. get pack with dependencys (as tree)
$ for package in $(pacman -Qetq); do pactree $package; done

6. for check package and dependenci status of a package:
```
pacman -Qi PAC_NAME
```
7. List of installed package sorted:
```
grep "installed" /var/log/pacman.log | awk '{print $1, $2, $4}' | grep -Ff <(pacman -Qqe) | sort
```
https://gist.github.com/jvdi/b3c67484214570cbd79ee23a157cedff

دیدگاه‌ها

دیدگاهتان را بنویسید

نشانی ایمیل شما منتشر نخواهد شد. بخش‌های موردنیاز علامت‌گذاری شده‌اند *