You are not logged in.

#1 2009-06-14 20:46:39

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Multiple commands

Was wondering is this would work for a one shot download and configure installation.

sudo pacman -Syu alsa-utils xorg nvidia mesa kde vlc firefox etc...

Would this make it so the updates download and all these programs install so I do not have to continuously go back to the computer watch one download then do another?

This would save  a lot of time for me.


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#2 2009-06-14 20:53:16

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Multiple commands

As far as i know it will work, am testing it right now.

Offline

#3 2009-06-14 20:58:22

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: Multiple commands

I am testing just starting to test it on my friends computer, but from the looks of it the updates will work but I do not know about the programs yet nor do I know if I will have to type yes between the updates and the applications. I wonder if you can make the yes automatic somehow with the pacman command.


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#4 2009-06-14 21:28:45

djnm
Member
From: USA
Registered: 2008-12-21
Posts: 78

Re: Multiple commands

there is the --noconfirm option for pacman

Last edited by djnm (2009-06-14 21:29:01)


br0tat0chip in #archlinux and on freenode

Offline

#5 2009-06-14 23:29:39

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

Re: Multiple commands

There is also the 'man pacman' option...

otacon, I would strongly recommend that you familiarise yourself thoroughly with Arch before attempting to install it for your friends. If you have not even read the pacman man page yet, you could end up with no friends. tongue

Offline

#6 2009-06-15 22:39:47

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: Multiple commands

there is the --noconfirm option for pacman

tomk wrote:

There is also the 'man pacman' option...

otacon, I would strongly recommend that you familiarise yourself thoroughly with Arch before attempting to install it for your friends. If you have not even read the pacman man page yet, you could end up with no friends. tongue

That is kind of harsh. I apologize for putting that little comment down, since I knew where I could find the answer easily. I did not mean for a real response about the yes command. I assure you I have read the man page for pacman and probably a hundred more commands. As soon as I was done with my previous post I looked it up. thank you djnm for the response though. Still my original question was not something that could be learned from The pacman manpage. The man page may have a huge list of the options you can do but it does not explain if you can use them all at once. I thought they would but in this specific case it does not. It will update the system and ignore the packages that I thought would install.

sudo pacman -Syu alsa-utils xorg nvidia mesa kde vlc firefox etc...

Did not work in my test, but you can still do this by executing two commands consecutively.

For a quick install after the initial restart type...

pacman --noconfirm -Syu; pacman --noconfirm -S alsa-utils mesa xorg nvidia kde vlc firefox etc...

if you get behind in your distrabutions like I did for a while you might want to put a couple more update commands like this:

pacman --noconfirm -Syu; pacman --noconfirm -Syu; pacman --noconfirm -Syu; pacman --noconfirm -S alsa-utils mesa xorg nvidia kde vlc firefox

If you are like me and was not smart enough to figure out how to download and install everything you want in one go without continuously having to go back and forth from the entertaining television to the computer then I hope I have helped you. It just makes me sad that it took me 23 installs to figure this out. Oh the time that I could have saved.

Last edited by otacon (2009-06-15 22:42:58)


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#7 2009-06-15 22:55:51

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Multiple commands

Just a sidenote: --noconfirm is usually a bad idea. You might end up confirming to something that you don't want to confirm.

Last edited by Mr.Elendig (2009-06-15 22:56:05)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#8 2009-06-15 23:17:35

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Multiple commands

otacon wrote:

if you get behind in your distrabutions like I did for a while you might want to put a couple more update commands like this:

pacman --noconfirm -Syu; pacman --noconfirm -Syu; pacman --noconfirm -Syu; pacman --noconfirm -S alsa-utils mesa xorg nvidia kde vlc firefox

I don't know if you messed up pasting or something, but I have no idea what the point of this is.  Why exactly are you Syu'ing 3 times in a row?

Last edited by tdy (2009-06-15 23:18:29)

Offline

#9 2009-06-15 23:36:49

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Multiple commands

tdy wrote:

I don't know if you messed up pasting or something, but I have no idea what the point of this is.  Why exactly are you Syu'ing 3 times in a row?

Yeah, you just need pacman -Syu to update everything that out of date. If you're installing a package for the first time pacman -S [packages] will install all the packages you list.

Offline

#10 2009-06-15 23:38:28

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: Multiple commands

When I had an older version of my installation CD I would have to update a couple of times because some of the updates were sequential. So if you are in that situation you can repeat the update command as much as needed before installing the rest.

*woops misspelled distributions


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#11 2009-06-15 23:39:06

tcoffeep
Member
From: Timmins, Ontario
Registered: 2008-11-26
Posts: 99

Re: Multiple commands

I've always done it :

pacman -Sy firefox thunderbird openbox etc...


=============== Read An Essay ===============
   Distro : Funtoo Linux || Kernel : ckernel-2.6.30-gentoo-r5
Processor : Athlon 64 X2 4400+ || RAM : 2GB || HD : 300GB
========================================

Offline

#12 2009-06-15 23:52:25

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: Multiple commands

yeah you sync it up between if you want. That might prevent some problems.


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#13 2009-06-16 05:26:13

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

Re: Multiple commands

otacon wrote:

When I had an older version of my installation CD I would have to update a couple of times because some of the updates were sequential.

FYI - this is not the case now, nor was it ever. If you issue pacman -Syu multiple times like that, only the first one will have any effect. Subsequent commands will simply confirm that your pacman database is up to date and then exit.

Offline

#14 2009-06-16 15:11:35

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Multiple commands

He's probably talking about: "Lol hi, there is a new pacman release out, wan to upgrade it first?"


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#15 2009-06-18 18:42:00

hatten
Arch Linux f@h Team Member
From: Sweden, Borlange
Registered: 2009-02-23
Posts: 736

Re: Multiple commands

Mr.Elendig wrote:

He's probably talking about: "Lol hi, there is a new pacman release out, wan to upgrade it first?"

That does not make sense...

Offline

#16 2009-07-12 17:28:13

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: Multiple commands

Yeah when we had a new pacman  we had to update it before we could update anything else.
So you had to do the update command a couple of times, but that seems to be the only time you would do the command multiple times.

Last edited by otacon (2009-07-12 17:28:57)


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

Board footer

Powered by FluxBB