FS#18279 - pacman -Scc --noconfirm
Attached to Project:
Pacman
Opened by Dimitrios Apostolou (jimis) - Wednesday, 10 February 2010, 20:51 GMT
Last edited by Dan McGee (toofishes) - Friday, 02 September 2011, 15:05 GMT
Opened by Dimitrios Apostolou (jimis) - Wednesday, 10 February 2010, 20:51 GMT
Last edited by Dan McGee (toofishes) - Friday, 02 September 2011, 15:05 GMT
|
Details
Pacman -Scc --noconfirm doesn't clean the cache because the
first question default answer is N. Is this in purpose, or
is it a bug?
My workaround is to do: echo -e 'y\ny' | /usr/bin/pacman -Scc |
This task depends upon
In other words, put a default in all questions.
Btw, there is a hidden and undocumented --ask switch to answer these questions, but it is for internal usage only (the syntax is complicated, it requires a bitvector etc.)
But people should not use pacman -Scc anyway...
And there is already plenty of options :
1) use echo y or yes
2) rm /var/cache/pacman/pkg/*
...
It's recommended to keep installed packages for two main reasons :
1) reinstall (because its broken, or files were lost, or need to change install reason)
2) downgrade after an upgrade
I don't think that someone uses -Scc "accidentally". If someone does, we ask a "Do you want to ... ALL ...?" question.
But OK, this is a minor issue(?), I am fine with "won't implement", too.
yes | pacman -Scc works as well as any of the other previously mentioned methods