You are not logged in.

#1 2011-08-30 20:22:37

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Make Pacman default y/N after update

This is probably a newbie question but this looks like the place to ask it.  I couldn't find an answer in the manual or a wiki.

Is it possible to make pacman default to No?


:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (10): xf86-input-evdev-2.6.0-4  xf86-input-keyboard-1.6.0-3
              xf86-input-mouse-1.7.1-2  xf86-input-vmmouse-12.7.0-3
              xf86-video-fbdev-0.4.2-5  xf86-video-nv-2.1.18-4
              xf86-video-vesa-2.3.0-6  xorg-server-common-1.11.0-1
              xorg-server-1.11.0-1  xorg-server-xephyr-1.11.0-1

Total Download Size:    2.12 MB
Total Installed Size:   6.23 MB

Proceed with installation? [Y/n]

Offline

#2 2011-08-30 20:28:45

serh
Member
Registered: 2011-08-16
Posts: 20

Re: Make Pacman default y/N after update

Why would you want to do that? If you want to stop certain packages from upgrading, you can ignore them in pacman.conf.

Offline

#3 2011-08-30 20:33:51

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: Make Pacman default y/N after update

I want to be able to do it selectively without having to edit pacman.conf, sometimes I hit the keys before I think about it.

I'm hoping that there might be an undocumented entry for pacman.conf.

Offline

#4 2011-08-30 20:52:13

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Make Pacman default y/N after update

cbowman57 wrote:

I want to be able to do it selectively without having to edit pacman.conf, sometimes I hit the keys before I think about it.

Arch cannot protect you from yourself smile


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2011-08-30 20:59:04

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: Make Pacman default y/N after update

It's not like I can't find a myriad of other ways to break it. smile

Offline

#6 2011-08-30 21:02:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Make Pacman default y/N after update

You can run

echo n | sudo pacman -Syu

which will "respond" 'No' to

looking for inter-conflicts...

Targets (4): run-parts-4.0.2-1 [0,02 MB]  ca-certificates-20110502-1 [0,13 MB]
             imagemagick-6.7.2.1-1 [1,80 MB]  lzo2-2.06-1 [0,10 MB]

Total Download Size:    2,05 MB
Total Installed Size:   10,84 MB

Proceed with installation? [Y/n]

and return to the prompt, so you can have a good look at what you're about to do. If you're sure about it, run 'pacman -Su'.

Offline

#7 2011-08-30 21:10:59

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: Make Pacman default y/N after update

karol wrote:

You can run

echo n | sudo pacman -Syu

isnt that giving the n char to sudo instead of pacman?

Offline

#8 2011-08-30 21:13:43

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Make Pacman default y/N after update

eldragon wrote:
karol wrote:

You can run

echo n | sudo pacman -Syu

isnt that giving the n char to sudo instead of pacman?

It seems to work here, are you saying it doesn't work for you?

Offline

#9 2011-08-30 21:23:20

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: Make Pacman default y/N after update

It seems to work here from the comamnd line.  Now I'm just trying to figure out how to incorporate it into a bash alias.

Thanks karol, that's pretty close to how I hoped it could be made to work.

Offline

#10 2011-08-30 21:25:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Make Pacman default y/N after update

alias foo="echo n | sudo pacman -Syu"

works here.

Offline

#11 2011-08-30 22:04:46

cbowman57
Member
Registered: 2011-08-21
Posts: 77

Re: Make Pacman default y/N after update

Nice. smile

Thanks.

Offline

Board footer

Powered by FluxBB