You are not logged in.

#1 2012-01-12 16:40:01

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 389

[Solved] pacman -Scc --noconfirm

Hi all,

the command

pacman -Scc --noconfirm

doesn't work as I expect it.

I want a command which cleans everything from the pacman cache (answers "yes" to all queries).
How is this possible?

There should be a better alternative than:

rm /var/cache/pacman/pkg/*.xz

big_smile

Thanks,
– Radioactiveman

Last edited by Radioactiveman (2012-01-12 18:26:28)

Offline

#2 2012-01-12 17:12:55

ijanos
Member
From: Budapest, Hungary
Registered: 2008-03-30
Posts: 443

Re: [Solved] pacman -Scc --noconfirm

Radioactiveman wrote:

I want a command which cleans everything from the pacman cache (answers "yes" to all queries).
How is this possible?

as root:

yes|pacman -Scc

Offline

#3 2012-01-12 18:26:15

Radioactiveman
Member
From: Germany
Registered: 2010-05-13
Posts: 389

Re: [Solved] pacman -Scc --noconfirm

Thanks, solved with:

sudo bash -c "echo 'j' | sudo pacman -Scc >/dev/null 2>&1"

echo 'j' because pacman speaks German with me. wink

Last edited by Radioactiveman (2012-01-13 20:31:28)

Offline

Board footer

Powered by FluxBB