You are not logged in.

#26 2014-05-10 12:18:44

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: pacman default as NO?

Guys, I don't know why everyone's making a big deal out of this request. If his patch doesn't change the default behaviour, and adds no noticeable cruft to pacman's codebase, I don't see why it should be a problem.

Even mutt provides the option of ask-yes or ask-no for dozens of (non-fatal) options.

And looking at the bug report, at least 3 people are interested in this feature. 3 people, who have a flyspray account, that is tongue

Offline

#27 2014-05-10 12:37:57

amish
Member
Registered: 2014-05-10
Posts: 513

Re: pacman default as NO?

@Trilby
I mean no dis-respect to anyone.

I used to be Fedora user (since 1998 - RedHat days).

I have started to like Arch. (And using from about 1 week - havent even booted back to Fedora since then)

My that statement was based on Fedora. This is how it happens in Fedora. (atleast people I know of do not update immediately)

Yum of Fedora has default option as NO. (Other major distros also have NO as default in their package updater) - so my assumption is not completely wrong.

Anyway, so my habit is "yum upgrade ...." ... press Enter. (i.e. Do nothing)

Now this causes major issue for me on arch ... "pacman -Syu... " ... press Enter... boom it starts updating!!

On Fedora to "test" remove package, I run "yum remove ... " ..... press enter. (does not remove package)

Now in arch  same thing immediately removes the package (even before you realize, package is gone!)

Thats why I asked for this feature, but instead, replies I got was do it yourself (which I did). Some guy used BS word etc.

Its like you cant even request a feature.  I am asking for optional feature, I am not forcing it on you.

Last edited by amish (2014-05-10 12:45:18)

Offline

#28 2014-05-10 12:49:58

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: pacman default as NO?

amish wrote:

Yum of Fedora has default option as NO. (Other major distros also have NO as default in their package updater) - so my assumption is not completely wrong.

Debian must not be a major distro. The default answer for apt is "Y".

Need to get 52.3 MB of archives.
After this operation, 5,955 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Offline

#29 2014-05-10 13:03:07

amish
Member
Registered: 2014-05-10
Posts: 513

Re: pacman default as NO?

Hmm, ok this is my last comment. Do not want to argue on distro comparisons. Its never going to end.

I have done my part, I have created and submitted the patch.

If its accepted no issue, if not even then no issue. I can always apply my patch and recompile.

Thanks everyone for replies and debates :-)

Offline

#30 2014-05-10 13:42:46

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,174
Website

Re: pacman default as NO?

2ManyDogs wrote:
amish wrote:

Yum of Fedora has default option as NO. (Other major distros also have NO as default in their package updater) - so my assumption is not completely wrong.

Debian must not be a major distro. The default answer for apt is "Y".

Need to get 52.3 MB of archives.
After this operation, 5,955 kB of additional disk space will be used.
Do you want to continue? [Y/n]

I was about to say that about Ubuntu.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#31 2014-05-10 14:29:32

aaditya
Member
Registered: 2013-09-01
Posts: 174

Re: pacman default as NO?

I too do pacman -Syu to check what updates are available, and then Ctrl^C or n mostly.
Didnt know about checkupdates, will give it a try.

Offline

#32 2014-05-10 14:45:15

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

Re: pacman default as NO?

amish wrote:

@Trilby
I mean no dis-respect to anyone.

I used to be Fedora user (since 1998 - RedHat days).

I have started to like Arch. (And using from about 1 week - havent even booted back to Fedora since then)

My that statement was based on Fedora. This is how it happens in Fedora. (atleast people I know of do not update immediately)

Yum of Fedora has default option as NO. (Other major distros also have NO as default in their package updater) - so my assumption is not completely wrong.

Anyway, so my habit is "yum upgrade ...." ... press Enter. (i.e. Do nothing)

Now this causes major issue for me on arch ... "pacman -Syu... " ... press Enter... boom it starts updating!!

On Fedora to "test" remove package, I run "yum remove ... " ..... press enter. (does not remove package)

Now in arch  same thing immediately removes the package (even before you realize, package is gone!)

Thats why I asked for this feature, but instead, replies I got was do it yourself (which I did). Some guy used BS word etc.

Its like you cant even request a feature.  I am asking for optional feature, I am not forcing it on you.

You either update or you don't. Your either remove a package or you don't. Doing a "test" remove is just nonsense. If I didn't want to remove a package, I wouldn't tell pacman to remove it.

My objection to this isn't based on that faulty assumption in the first post, it's in wanting the Windows like behavior of constantly having to confirm what I already told it to do. It doesn't matter if it's optional, it's against the Arch Way IMO. The user is given control over their system and it's expected that they can use it responsibly. If they can't, that's their problem.

Offline

#33 2014-05-10 15:10:20

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: pacman default as NO?

amish wrote:

even before you realize, package is gone!

Isn't the *.pkg.tar.gz still in /var/cache/pacman/pkg/? It can be re-installed even without an internet connection... wink


Jin, Jîyan, Azadî

Offline

#34 2014-05-10 15:29:09

amish
Member
Registered: 2014-05-10
Posts: 513

Re: pacman default as NO?

Scimmia wrote:

You either update or you don't. Your either remove a package or you don't. Doing a "test" remove is just nonsense. If I didn't want to remove a package, I wouldn't tell pacman to remove it.

Good to know its non-sense. smile

@head_on_a_stick - yes i know. thats what i have done. But I want to avoid doing that, thats why feature request.

Offline

#35 2014-05-10 16:37:14

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: pacman default as NO?

In Andrew Gregory's last comment in that bug report, I think he provides a sane "solution" (personally, I'm not sure if there was a problem to begin with):

Andrew Gregory wrote:

If you want safer behavior, I would instead suggest a setting to remove the default action altogether so that the user MUST provide an answer unless --noconfirm is used. That way we don't have to worry about figuring out which prompts should be changed.

Offline

#36 2014-05-10 16:48:11

amish
Member
Registered: 2014-05-10
Posts: 513

Re: pacman default as NO?

Umm, If that suggestion is accepted, some people will complain, "Hey you are making me type one keystroke extra". (Me included)

My patch can easily be further extended to make Andrew Gregory happy as well.
DefaultAnswer = nodefault
(see my comment on feature request page for details)

You cant keep everyone happy by hardcoding things, thats why "conf" file concept was ever designed. Let each user set their own preference.

Last edited by amish (2014-05-10 16:50:06)

Offline

#37 2014-05-10 17:16:48

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: pacman default as NO?

I remember when I was a freshly-minted Arch noob, and I was quite put out that I couldn't use Debian-style network configuration - even asked about it, just like you're asking why pacman can't be configured to behave like yum.

The thing is, the reason we have different distros is, well, because they are different. Maybe you believe a week is enough for you to become accustomed to the way Arch does things, maybe you are already fully convinced that you will never be able to change your habits sufficiently to avoid the danger that you perceive in the current setup. I think it's great that you have the time and skill to create and submit a patch for this, but I would recommend that you give yourself more time with Arch as well.

I became very comfortable with Arch's network configuration as it was back then, and ultimately found it much more straightforward than the Debian method that I had been using - but of course, that took time, definitely more than a week.

Last edited by tomk (2014-05-10 17:17:20)

Offline

#38 2014-05-10 17:21:23

train_wreck
Member
Registered: 2011-10-22
Posts: 97

Re: pacman default as NO?

i guess you could say this distro is "mature" when you're getting 30+ replies on a topic like this smile

and to amish's very first post, yes this type of issue has been discussed by a certain member (me!) a few weeks ago, albeit with a little less drama

https://bbs.archlinux.org/viewtopic.php?id=181057

#SplittingHairs

Offline

#39 2014-05-10 19:51:47

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

Re: pacman default as NO?

WonderWoofy wrote:

/usr/bin/checkupdates

This. There is a reason this is shipped with pacman.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#40 2014-05-10 20:58:16

Shark
Member
From: /dev/zero
Registered: 2011-02-28
Posts: 686

Re: pacman default as NO?

To be honest – till now i didn't really realized that Y is a default way. It could be N. But then again somebody could demand a Y way if N would be a default one.

Anyway – it's all about choises and preferences. Arguments are secondary smile

Last edited by Shark (2014-05-10 20:59:43)


If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau

Registered Linux User: #559057

Offline

#41 2014-05-10 23:09:12

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: pacman default as NO?

I've been following this thread since shortly after it opened, and I'm no closer to understanding what the problem is now than I was last night. I'd almost swear this thread were satire.

Offline

#42 2014-05-11 07:59:55

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: pacman default as NO?

Post #27 made it clear for me - he has habits developed over many years using yum, and he wants to change pacman to accommodate those habits, instead of allowing his habits to change to accommodate pacman.

Offline

#43 2014-05-11 12:17:54

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: pacman default as NO?

I am closing this thread before it escalates. There is not much more that can be said than already has. If you wish to contribute to the technical side of the discussion, there is a report on the bug tracker; link somewhere above.

amish, I hope you reconsider to learn how to use pacman and related tools correctly. If you insist on partial updates, there is little this forum or the Arch Linux community in whole can offer you.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB