https://github.com/tyilo/pacclean
A better `pacman -R $(pacman -Qdtq)`
https://github.com/tyilo/pacclean
alpm archlinux
Last synced: about 2 months ago
JSON representation
A better `pacman -R $(pacman -Qdtq)`
- Host: GitHub
- URL: https://github.com/tyilo/pacclean
- Owner: tyilo
- Created: 2019-08-01T22:47:29.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-27T14:10:13.000Z (over 6 years ago)
- Last Synced: 2025-06-28T21:09:00.203Z (12 months ago)
- Topics: alpm, archlinux
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pacclean
**Note:** You should probably just install [yay](https://github.com/Jguer/yay) and run `yay -Yc` instead.
Tired of running `pacman -R $(pacman -Qdtq)` ten times to remove all your unused packages installed just as dependencies?
Want a `pacman -Qdt` that can detect dependency cycles that are not needed?
Then `pacclean` is for you!
## Dependencies
Requires [libalpm](https://www.archlinux.org/pacman/libalpm.3.html), [Boost.Program_options](https://www.boost.org/doc/libs/release/libs/program_options/) and a C++ compiler supporting C++17.
Probably only works on Arch Linux, so just install the dependencies with:
```sh
pacman -Syu boost g++ make
```
## Building
Just run `make` and the `pacclean` binary should appear.
## TODO
- Figure out what to do, when a package depends one another package, that more than one installed package provide.
Currently we just treat all of those packages as dependencies.