You are not logged in.

#1 2013-03-22 01:03:31

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

bacpac: pacman-independent package downloader with dep resolution

Project page: http://xyne.archlinux.ca/projects/bacpac/

Bacpac is a pacman-independent package downloader with dependency resolution. It will run on any system with a working Python 3 interpreter. It is meant to aid system recovery if an Arch Linux live CD is unavailable.*

As usual, comments, questions, suggestions and other feedback are welcome.


* Well, that's the official reason. The real reason is that I wanted to do something with the JSON package info interface.

edit: updated after packaging

Last edited by Xyne (2013-03-30 15:13:37)

Offline

#2 2013-03-22 01:37:09

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 903

Re: bacpac: pacman-independent package downloader with dep resolution

this script can by used as a backup in case that pacman is broken in any sistem and need reinstall, because not suffer from the
.so bump from curl that can by broken pacman, right??

I like the idea and about the name...
why not tracker because track from the internet the packages
or nameless as THE name


Well, I suppose that this is somekind of signature, no?

Offline

#3 2013-03-22 02:17:50

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: bacpac: pacman-independent package downloader with dep resolution

There is already a tracker (something to do with gnome).

vacpac?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#4 2013-03-22 02:21:51

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 13,379
Website

Re: bacpac: pacman-independent package downloader with dep resolution

vacpac?  What would the tagline be "it sucks more than pacman"?


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Online

#5 2013-03-22 02:39:03

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 903

Re: bacpac: pacman-independent package downloader with dep resolution

pacrat
is simple and copy the pacman name whitout being pacman at same time


Well, I suppose that this is somekind of signature, no?

Offline

#6 2013-03-22 03:00:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 3,399
Website

Re: bacpac: pacman-independent package downloader with dep resolution

Xyne wrote:

feel free to vote and suggest others

Real vote: paxyne package manager

Joke vote: pacmanjr

Offline

#7 2013-03-22 03:31:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 12,254

Re: bacpac: pacman-independent package downloader with dep resolution

How about: Blinky? Pinky? Inky? Clyde?

Edit: Never mind, I did not read the OP as throughly as I should have.

Last edited by ewaller (2013-03-22 03:32:22)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Like you, I have no idea what you are doing, but I am pretty sure it is wrong...Jasonwryan
----
How to Ask Questions the Smart Way

Offline

#8 2013-03-22 19:04:26

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

Jristz wrote:

this script can by used as a backup in case that pacman is broken in any sistem and need reinstall, because not suffer from the
.so bump from curl that can by broken pacman, right??

It can be used to download packages for manual installation on a given system if Python 3 works.
If Python 3 is broken then you can run it on a different system (without Pacman) to download the packages.





As for names, I like pacrat so far.

Offline

#9 2013-03-22 21:59:13

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: bacpac: pacman-independent package downloader with dep resolution

Won't that require a paccat?


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#10 2013-03-22 22:21:52

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 903

Re: bacpac: pacman-independent package downloader with dep resolution

cfr wrote:

Won't that require a paccat?

and a pacdog too, and a pacowner that own pacdog and paccat, and a pacdoctor for cure paccat and pacdog, and paccheese for pacrat

Enought off pactopic

but I not underestand at all, how pacrat download the package??


Well, I suppose that this is somekind of signature, no?

Offline

#11 2013-03-23 05:25:40

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

Jristz wrote:

but I not underestand at all, how pacrat download the package??

pacmagic cool






Open it and look at the code. wink
Basically, it uses the package JSON interface to get the filename and dependencies, then it uses the mirror JSON interface to get a mirror and determine the package URL.

Offline

#12 2013-03-23 05:43:23

MagicSkyFairy
Member
Registered: 2013-03-14
Posts: 79

Re: bacpac: pacman-independent package downloader with dep resolution

pacboy LOL


I have wasted atleast a second of your time by making you read my signature.

Offline

#13 2013-03-24 04:54:28

stryder
Member
Registered: 2009-02-28
Posts: 498

Re: bacpac: pacman-independent package downloader with dep resolution

bacpac

as in the backup pacman.

Offline

#14 2013-03-24 05:44:09

MagicSkyFairy
Member
Registered: 2013-03-14
Posts: 79

Re: bacpac: pacman-independent package downloader with dep resolution

stryder wrote:

bacpac

as in the backup pacman.

I retract my response and second this.


I have wasted atleast a second of your time by making you read my signature.

Offline

#15 2013-03-24 06:00:44

Jristz
Member
From: America/Santiago
Registered: 2011-06-11
Posts: 903

Re: bacpac: pacman-independent package downloader with dep resolution

Xyne wrote:

.......
Basically, it uses the package JSON interface to get the filename and dependencies, then it uses the mirror JSON interface to get a mirror and determine the package URL.

And now I underestand correctly (look code + your descritpion was enought to know how work
thanks


I remain my Pacrat in the names


Well, I suppose that this is somekind of signature, no?

Offline

#16 2013-03-24 06:46:51

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

I'm heavily leaning towards bacpak... the backup pacman that you can carry around with you.

Pacrat might be better for some sort of package rollback script.

Offline

#17 2013-03-24 08:46:00

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: bacpac: pacman-independent package downloader with dep resolution

Here is some code if you only have wget, sed, and chmod +x:

# get a static python interpreter with ssl support. 
wget -O "stacklessxl3.2-static" "http://pts-mini-gpl.googlecode.com/svn/trunk/staticpython/release/stacklessxl3.2-static"
chmod +x "stacklessxl3.2-static"
wget -O "bacpac.py" "http://xyne.archlinux.ca/scripts/pacman/nameless.py"
sed -i "s/, BrokenPipeError//" bacpac.py # 3.2 doesn't know BrokenPipeError
sed -i "s/python3/.\/stacklessxl3.2-static/" bacpac.py # use static interpreter
chmod +x bacpac.py
# run now bacpac.py PKGNAME ...

Last edited by progandy (2013-03-24 08:50:05)

Offline

#18 2013-03-24 08:53:12

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

@progandy
Nice, thanks!

I've added two options: --gen-providers and --use-providers

The former creates a JSON database of providers for dependency resolution.
The latter is the option to use it.

Generation requires pyalpm but I intend to keep an up-to-date version of the providers file on my site for those without.

Offline

#19 2013-03-24 13:24:25

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,058

Re: bacpac: pacman-independent package downloader with dep resolution

stryder wrote:

bacpac

as in the backup pacman.

I am wondering if this would cause confusion with backpac although it serves a different function.

Last edited by anonymous_user (2013-03-24 13:24:51)

Offline

#20 2013-03-24 21:33:56

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 5,661

Re: bacpac: pacman-independent package downloader with dep resolution

Trilby wrote:

vacpac?  What would the tagline be "it sucks more than pacman"?

Possibly though I had in mind vacuum packed meals and the like because it sucks down packages which are then ready-to-use...


How To Ask Questions The Smart Way | Help Vampires

Arch Linux | x86_64 | GPT | EFI boot | grub2 | systemd | LVM2 on LUKS
Lenovo x121e | Intel(R) Core(TM) i3-2367M CPU @ 1.40GHz GenuineIntel | Intel Centrino Wireless-N 1000 | US keyboard with Euro | 320G 7200 RPM Seagate HDD

Offline

#21 2013-03-30 15:15:58

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

This has been packaged now. I've gone with the name "bacpac". The "backpac" project does not appear to be active nor popular enough to risk considerable confusion.

Offline

#22 2013-03-30 19:17:21

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

I have added more features to emulate pacman behavior. The main one is that it can extract packages to a given root directory and be used for basic package installation during system recovery.

Check the changelog for details.

Offline

#23 2013-03-30 20:10:38

progandy
Member
Registered: 2012-05-17
Posts: 2,143

Re: bacpac: pacman-independent package downloader with dep resolution

Nice. If you want to remove the pyalpm dependency, know that the database is a tar archive of plain text files. You can read that with pythons tarfile module.

Offline

#24 2013-03-30 20:30:13

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,616
Website

Re: bacpac: pacman-independent package downloader with dep resolution

progandy wrote:

Nice. If you want to remove the pyalpm dependency, know that the database is a tar archive of plain text files. You can read that with pythons tarfile module.

I'll consider it, but once I start down that route I may as well skip the JSON interface entirely and implement full database parsing, as most of the functionality would be required to get the providers array anyway.

Offline

#25 2013-03-30 21:58:16

chneukirchen
Member
Registered: 2010-02-11
Posts: 100

Re: bacpac: pacman-independent package downloader with dep resolution

People will confuse it with bacman. wink

Offline

Board footer

Powered by FluxBB