You are not logged in.

#1 2022-06-01 12:02:24

Der Chefkoch
Member
Registered: 2020-12-05
Posts: 100

[SOLVED] You cannot perform this operation unless you are root

Just wanted to do a little system maintenance for once using "sudo pacman -Qtdq | pacman -Rns -"  to clean orphans, yet I get the error message "You cannot perform this operation unless you are root"

Yes I used sudo, why is this not working?

Cheers

Last edited by Der Chefkoch (2022-06-01 12:11:25)

Offline

#2 2022-06-01 12:05:04

dogknowsnx
Guest

Re: [SOLVED] You cannot perform this operation unless you are root

You need sudo for the pipe, not the query...

#3 2022-06-01 12:11:06

Der Chefkoch
Member
Registered: 2020-12-05
Posts: 100

Re: [SOLVED] You cannot perform this operation unless you are root

dogknowsnx wrote:

You need sudo for the pipe, not the query...

And again I learned something, thank you.

Offline

#4 2022-06-01 12:18:41

dogknowsnx
Guest

Re: [SOLVED] You cannot perform this operation unless you are root

I hope you didn't "learn" that all piped commands need elevated privileges... tongue

Board footer

Powered by FluxBB