You are not logged in.

#1 2015-05-17 03:11:00

GutenYe
Member
From: China
Registered: 2011-11-27
Posts: 44
Website

[SOLVED] pacman -Scc --noconfirm does not work in script.

see https://github.com/nfnty/dockerfiles/issues/2 for more details, It confirms the second 'y', but not the first 'y'.

Last edited by GutenYe (2015-05-17 06:25:58)


Linux, Vim, Ruby, Javascript and Go.

Offline

#2 2015-05-17 05:54:11

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED] pacman -Scc --noconfirm does not work in script.

Aren't the defaults different?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2015-05-17 05:57:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] pacman -Scc --noconfirm does not work in script.

Right. --noconfirm takes the defaults, so the first one is 'N'. Everything is working correctly here.

Offline

#4 2015-05-17 05:58:55

GutenYe
Member
From: China
Registered: 2011-11-27
Posts: 44
Website

Re: [SOLVED] pacman -Scc --noconfirm does not work in script.

Thanks, Is there a way to clean all `/var/cache/pacman/pkg` packages? 

Edit: I need run it in script.

Last edited by GutenYe (2015-05-17 05:59:15)


Linux, Vim, Ruby, Javascript and Go.

Offline

#5 2015-05-17 06:08:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED] pacman -Scc --noconfirm does not work in script.

Depends on the interpreter. In Bash, you could use pacman -Scc <<< Y <<< Y

Offline

#6 2015-05-17 06:26:29

GutenYe
Member
From: China
Registered: 2011-11-27
Posts: 44
Website

Re: [SOLVED] pacman -Scc --noconfirm does not work in script.

Scimmia wrote:

Depends on the interpreter. In Bash, you could use pacman -Scc <<< Y <<< Y

Great, Thank you @Scimmia.


Linux, Vim, Ruby, Javascript and Go.

Offline

Board footer

Powered by FluxBB