You are not logged in.

#1 2010-09-12 07:20:48

mibadt
Member
Registered: 2009-09-25
Posts: 396

Switch to powerpill during fresh net install

Hi,
In a few days I'll (net) install Arch (64b) on a new PC.
The Wiki instillation guides  recommends using pacman.
Since powerpill is much faster, I wonder if I can install powerpill, immediately after installing pacman, and use powerpill instead for a faster installation.
If so, wouldn't it be wise to update the Wiki accordingly?
Thanks


Best regards,
Michael Badt

Offline

#2 2010-09-12 08:09:50

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

Re: Switch to powerpill during fresh net install

After you've tried it, you can update the wiki yourself. wink

Offline

#3 2010-09-12 09:32:01

mibadt
Member
Registered: 2009-09-25
Posts: 396

Re: Switch to powerpill during fresh net install

Well, I'll try it!


Best regards,
Michael Badt

Offline

#4 2010-09-13 01:08:25

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Switch to powerpill during fresh net install

I've been looking at this today but I haven't figured out a way to tell aif -p interactive to use powerpill instead of pacman. I installed powerpill as soon as boot from disk was complete.

Offline

#5 2010-09-13 01:50:29

codycarey
Member
Registered: 2009-08-21
Posts: 154

Re: Switch to powerpill during fresh net install

PIMPinator wrote:

I've been looking at this today but I haven't figured out a way to tell aif -p interactive to use powerpill instead of pacman. I installed powerpill as soon as boot from disk was complete.

Since powerpill is just a wrapper for pacman you can likely just modify the PACMAN and PACMAN_TARGET variables in 'aif.sh'. Just a guess though.

Offline

#6 2010-12-20 21:31:58

Montague
Banned
Registered: 2010-06-24
Posts: 93

Re: Switch to powerpill during fresh net install

 

Last edited by Montague (2015-07-28 02:30:17)

Offline

#7 2010-12-21 14:51:34

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: Switch to powerpill during fresh net install

if powerpill accepts the same arguments as pacman, and gives output in the same way as pacman, changing the aforementioned variables should work perfectly.

I stress the "output in the same way" part, because in some steps we parse pacman output (like, to get a list of packages in the base group, and so on)
Also, make sure powerpill configuration is ok (points to the right repositories etc), we write this stuff to pacman.conf, so if powerpill uses a different file or markup...

if powerpill gives output in a different format, you might need to change some functions as well (list_packages and such, see lib-pacman.sh).

Last edited by Dieter@be (2010-12-21 14:54:04)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#8 2010-12-21 21:54:42

Montague
Banned
Registered: 2010-06-24
Posts: 93

Re: Switch to powerpill during fresh net install

 

Last edited by Montague (2015-07-28 02:30:39)

Offline

#9 2010-12-22 19:06:53

Montague
Banned
Registered: 2010-06-24
Posts: 93

Re: Switch to powerpill during fresh net install

 

Last edited by Montague (2015-07-28 02:30:47)

Offline

#10 2010-12-23 22:17:04

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,000
Website

Re: Switch to powerpill during fresh net install

Montague wrote:
nano /etc/bash.bashrc

    # I added this line:
    # alias pacman=powerpill
    # and then I exited nano

source /etc/bash.bashrc
/arch/setup

doesn't work because an alias is a concept in interactive shells.  aif is a bash script running in a non-interactive bash session, so it will just run the pacman command.

Montague wrote:

Before launching the AIF, setup your network (dhcpcd eth0 or the like…)
other note: I suppose you could launch the AIF to get some assistance setting up your network, but if you do, exit it when your network is up and working (do not select a mirror yet), and proceed to the steps below.

you can run:

aif -p partial-configure-network

will interactively configure your network, and store your settings in a file so the installer can write them to the target system.

Montague wrote:

(...)

nano /sbin/aif    # at the bottom of the file, change
                  #    «PACMAN=pacman»
                  # to «PACMAN=powerpill» and also change
                  #    «PACMAN_TARGET="pacman …»
                  # to «PACMAN_TARGET="powerpill …»
                  # exit nano (save changes)

/arch/setup       # starts the AIF, but this time it will
                  # use powerpill instead of pacman
                  # It should be pretty fast. Good luck!

If anybody tries this, let us know how it went, if the steps make sense, if anything should be added/removed/modified…

this is basically what was said already..

Last edited by Dieter@be (2010-12-23 22:22:29)


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#11 2011-02-25 10:52:01

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Switch to powerpill during fresh net install

After I test this I'll add it to the Beginner's Guide on the wiki, as I feel it is extremely useful information for speeding up the process.

Offline

#12 2011-02-25 13:17:27

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Switch to powerpill during fresh net install

I've tested with a VirtualBox install and it worked (with 512MB RAM) so I've added instructions to the Beginner's Guide. It would of course be good if someone can verify I've included everything there and second that they work.

EDIT: I deleted and reinstalled in VirtualBox, following the instructions in the Beginner's Guide for using powerpill, and all is well. Should be alright then.

EDIT: EDIT: Perhaps we could get a [solved]? The way to do it is in the wiki now (happily linked from Beginner's Guide to https://wiki.archlinux.org/index.php/Us … _with_AIF)

Last edited by PIMPinator (2011-03-01 14:59:56)

Offline

#13 2011-04-27 15:38:01

Montague
Banned
Registered: 2010-06-24
Posts: 93

Re: Switch to powerpill during fresh net install

 

Last edited by Montague (2015-07-28 02:31:34)

Offline

#14 2011-04-28 16:52:26

Zoide
Member
Registered: 2011-04-21
Posts: 4

Re: Switch to powerpill during fresh net install

Hi,

In the last post, it is exact  we cannot use during a new installation of Arch the script "powerpill", but if you go to the following link: http://xyne.archlinux.ca/old_projects/powerpill/ . The Web page explain how to install it with Yaourt.

Offline

#15 2011-04-28 16:58:44

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Switch to powerpill during fresh net install

Zoide wrote:

Hi,

In the last post, it is exact  we cannot use during a new installation of Arch the script "powerpill", but if you go to the following link: http://xyne.archlinux.ca/old_projects/powerpill/ . The Web page explain how to install it with Yaourt.

No.

That is listed under "Old Projects". It is deprecated and no longer works.

You can, however, use "powerpill-light" provided by pacman2aria2.

To access it during installation, add [xyne-any] to pacman.conf.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#16 2011-04-28 20:16:16

Montague
Banned
Registered: 2010-06-24
Posts: 93

Re: Switch to powerpill during fresh net install

 

Last edited by Montague (2015-07-28 02:30:59)

Offline

#17 2011-06-02 15:53:17

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Switch to powerpill during fresh net install

Hey, didn't realise people had been replying to this thread.

Yeah, I realised it would no longer work when powerpill was killed off, it was marked on the wiki by someone before me though. I haven't tried powerpill-light at all yet, so I'll have to take a look at it.

Also, I'm not sure how you do your fresh installs from a running Arch system, but it rarely seems worthwhile for me, plus I'm usually in a situation where the live cd makes more sense.

BTW, what's the point of using yaourt anyway? I keep seeing suggestions in places, but IIRC it doesn't have any sort of accelleration built in.

Last edited by PIMPinator (2011-06-02 15:55:04)

Offline

#18 2011-06-07 19:01:58

PIMPinator
Member
From: Queensland, Australia
Registered: 2010-03-14
Posts: 85

Re: Switch to powerpill during fresh net install

I've been working for a few hours on getting powerpill-light working with AIF but it's not going well, mainly because powerpill-light doesn't want a -S flag and so will refuse to doing anything when set up the same way as powerpill was. The "Select Packages" step will fail. I'm yet to find somewhere in the AIF files that I can change the command that downloads the packages. If anyone (Montague?) wants to crawl through the AIF files and find the command to change, be my guest.

Also, if anyone knows where we can get the original powerpill packages (for each architecture) and their dependencies, couldn't we still use those? Since the ISO has STILL not been updated, it's using a pre-3.5 pacman, and the only difference in the current instructions would be installing powerpill manually from packages, and commenting out the SyncFirst line in /etc/pacman.conf.

Offline

#19 2011-06-09 19:36:34

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Switch to powerpill during fresh net install

PIMPinator wrote:

I've been working for a few hours on getting powerpill-light working with AIF but it's not going well, mainly because powerpill-light doesn't want a -S flag and so will refuse to doing anything when set up the same way as powerpill was. The "Select Packages" step will fail. I'm yet to find somewhere in the AIF files that I can change the command that downloads the packages. If anyone (Montague?) wants to crawl through the AIF files and find the command to change, be my guest.

Also, if anyone knows where we can get the original powerpill packages (for each architecture) and their dependencies, couldn't we still use those? Since the ISO has STILL not been updated, it's using a pre-3.5 pacman, and the only difference in the current instructions would be installing powerpill manually from packages, and commenting out the SyncFirst line in /etc/pacman.conf.

Powerpill etc are still online on my site: http://xyne.archlinux.ca/old_projects/
Note that the packages are "any" architecture.

As for the -S flag, a related issue came up in the powerpill-light thread: https://bbs.archlinux.org/viewtopic.php … 03#p945703

I'll look into simple argument parsing when I have some time. It should be possible to make it a full wrapper by using the presence of "-S" to determine what it invokes.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB