News for hackers. Stuff that matters.
Re:ArchLinux, Not Just For The Elite by sunkencity on Tuesday November 08, 2011 @09:25AM (#3210812)
I like arch, except for the stupid command line arguments to pacman. I wish they had just kept it more standard. There's nothing wrong with naming "install" install and "search" search. Feels to me like a case of inventing complexity just to make it feel a little more elitist.

   pacman -Ss gnome # searches for gnome
   pacman -S gnome # installs gnome
Re:ArchLinux, Not Just For The Elite by johanbev on Tuesday November 08, 2011 @10:01AM (#3210952)
That's just how CLI apps work, there is nothing elitist about it. Its "cd" and "ls -la" and "cat", not "change-directory," "list-directory long-format everything" and so on. The learning curve might be steep, but it's well worth it, especially for those of us who "live" in a shell.

In the particular case of pacman, I really like the design of the arguments, in particular the top level ones. -S is for syncing, -R is for removing, and -Q is for querying and so on. Nice!

Re:ArchLinux, Not Just For The Elite by 211231321 on Tuesday November 08, 2011 @01:26PM (#3212026)
Yes, but why rename install to syncing and search to query? Why not just call it install and make it -i for install and -s for search which is still search. I think that is what the OP is trying to say.
Re:ArchLinux, Not Just For The Elite by johanbev on Tuesday November 08, 2011 @02:16PM (#3212289)
Searching isn't the same as querying. -Q is for operations dealing on the _local_ repository. -S synchronizes your local repository with the remote repository. In a way installing could very well be -Si (-S --install), but installing is the default action in -S mode instead. Pacman is maybe somewhat idiosyncratic, but I find it very useful and simple once you get the basics.
Re:ArchLinux, Not Just For The Elite by 211231321 on Tuesday November 08, 2011 @02:31PM (#3212356)
Oh, i used it. Found it delightful, actually I am yet to encounter a very bad package management system. They are all really good since I started using linux.
Re:ArchLinux, Not Just For The Elite by swasheck on Tuesday November 08, 2011 @10:11AM (#3210995)
I guess it's a matter of what you're used to and once you get used to pacman/pacaur/yaourt, then I guess it becomes fairly standard.

Package managers are funny beasts. They're like children, when someone rips the flaws of one, the community comes rallying to its defense.

Having said that, I've personally always hated Zypper.

Re:ArchLinux, Not Just For The Elite by Nic0 on Tuesday November 08, 2011 @09:35AM (#3210839)
Command line tool use much more often -x or --foo arguments that a word. Also -S is still faster to type than install, personally I won't switch for 'install'.

Nevertheless, you may add some alias to change the behavior if it's annoying you.

Re:ArchLinux, Not Just For The Elite by adestefan on Tuesday November 08, 2011 @10:00AM (#3210949)
I never liked CLI tools that have a "mode" switch that then overloads command arguments.

Pacman is especially confusing since -S actually means the sync mode. Which doesn't really fit with the idea of installing a package. Also, why do you use sync mode to install a package, but have a special remove (-R) mode to remove a package? Shouldn't there be a -I to install?

To take it further, standard use cases for a package manager should be install, upgrade, search and remove with standard arguments -i/--install, -u/--upgrade, -s/--search, -r/--remove.

It seems that most of the package managers get this wrong. For apt-get what's the difference to update, upgrade and dist-upgrade? For yum why is there both an update and an upgrade and why is there a special groupinstall? I know the answer to these questions, but it's confusing until you wrap your head around it.

Re:ArchLinux, Not Just For The Elite by chimeracoder on Tuesday November 08, 2011 @10:35AM (#3211091)
> Pacman is especially confusing since -S actually means the sync mode. Which doesn't really fit with the idea of installing a package.

The idea is that you are synchronizing your copy of the local package (which is currently empty/nonexistant) with the remote copy. It's also the same command you use to update that package. So,

pacman -S foo

will upgrade foo if it exists locally, and find and install the most recent version of foo if it does not.

Once you get used to it, the command-line switches in pacman actually address your second concern (the one with apt/yum). In pacman, everything is built on top of a very simple database model - it just so happens that that simple database model is also powerful enough to serve a range of complex functions.

Re:ArchLinux, Not Just For The Elite by botker on Tuesday November 08, 2011 @09:34AM (#3210837)
I had the same reaction at first, but its pith became a selling point as I learned the flags. Of course there's nothing stopping you from wrapping the command.