Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No --quiet mode #143

Closed
crabdancing opened this issue Jun 29, 2020 · 5 comments
Closed

No --quiet mode #143

crabdancing opened this issue Jun 29, 2020 · 5 comments

Comments

@crabdancing
Copy link

If I do pacman -R $(pacman -Qsq | grep potato) I can uninstall all potato related packages in one go, on an Arch Linux system. On Ubuntu, using pacapt, I cannot. This seems to me to be a big piece of missing functionality.

@icy
Copy link
Owner

icy commented Jul 6, 2020

If I do pacman -R $(pacman -Qsq | grep potato) I can uninstall all potato related packages in one go, on an Arch Linux system. On Ubuntu, using pacapt, I cannot. This seems to me to be a big piece of missing functionality.

Does pacman -Qq work for you?

@icy
Copy link
Owner

icy commented Jul 6, 2020

On my current Arch, these are the same

$ diff <(pacman -Qq) <(pacman -Qqs)
# no diff

I suspect you're looking for -s option, which is supposed to be an alias of pacman -Qq. But I'm not sure...

@crabdancing
Copy link
Author

crabdancing commented Jul 6, 2020

The -s option does not fix my problem, unfortunately.

The -s option means search. -s is behaving the same in that situation
because you don't have any search term. Also, note that you're putting -q
on both, which means both outputs will be quiet. If you try having one with
-Qs and the other with -Qq, you will see a marked difference.

To see easier what -s does: if you add a search term, you'll see the
difference -- one option looks for the exact package name:

$ pacman -Qq linux
linux

And the other one turns up anything matching a regex search term in the
package's description, or package name:

$ pacman -Qqs linux
alsa-lib
alsa-utils
an2linuxserver-git
android-udev
apparmor
arch-install-scripts
archiso
. . .

As far as I am aware, an external search is the only robust workaround, if
you just want to search package names:

$ pacman -Qsq | grep linux
an2linuxserver-git
archlinux-java-run
archlinux-keyring
lib32-util-linux
libutil-linux
linux
linux-api-headers
linux-firmware
linux-headers
linux-lts
linux-lts-headers
syslinux
util-linux

A package list is easily generatable for all these use cases, with
pacman, by passing -q. So that should be the case for pacapt too.

Anyway, hope that helps clear it up!

@icy
Copy link
Owner

icy commented Jul 7, 2020

Thanks a lot, @alxpettit . I think we need to add another option (-q) to this one

dpkg_Qs() {
.

@icy icy self-assigned this Jun 17, 2021
@icy icy added this to the Next generation (ng branch) milestone Jun 17, 2021
icy added a commit that referenced this issue Jun 17, 2021
icy added a commit that referenced this issue Jun 17, 2021
icy added a commit that referenced this issue Jun 17, 2021
@icy icy added the PR ready label Jun 17, 2021
icy added a commit that referenced this issue Jun 18, 2021
@icy
Copy link
Owner

icy commented Jun 18, 2021

Fixed in #154

@icy icy closed this as completed Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants