Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- To get a list of all installed Arch/AUR packages that aren't libraries or dependencies, i.e., they aren't required by any other packages, you can use the `pacman` command with the `-Qent` flag. This will list all explicitly installed native packages that are not direct or optional dependencies:
- ```bash
- pacman -Qent
- ```
- However, this command will only list packages from the official repositories and not the AUR packages. To get a list of all installed AUR packages, you can use the `pacman -Qmq` command:
- ```bash
- pacman -Qmq
- ```
- To filter out AUR packages that are not required by any other packages, you can combine the output of the above commands with some additional scripting. Here's an example of how you can achieve this:
- ```bash
- comm -23 <(pacman -Qmq | sort) <(pacman -Qqg base | sort -u)
- ```
- This command will list all installed AUR packages that are not required by any other packages. Note that this command assumes that you have the `comm` utility installed on your system. If you don't have it, you can install it by installing the `coreutils` package:
- ```bash
- sudo pacman -S coreutils
- ```
- Keep in mind that this approach might not be perfect, as it may still include some packages that are indirectly required by other packages. However, it should give you a good starting point for identifying packages that are not libraries or dependencies.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement