Author |
Message |
jamesjeffries2
Joined: 27 Apr 2008 Posts: 196
|
Posted: Tue 10 Nov 2009, 16:31 Post subject:
multi package manager |
|
Been out of the puppy loop for a while due to having to learn lots about debian for work. Good to be back using puppy, much friendlier feel to it.
Anyway, working on a command line based package manager for puppy. a sort of apt-get style thing that we can link up to ibilio or any other puppy software repository.
After I have the basic functionality working I want to work on getting it be able to install packages from other distributions too such as .deb .rpm etc.
Would anyone use this? and what do some of the more technical people think about using other package formats?
Jim
|
Back to top
|
|
 |
Eyes-Only

Joined: 10 Aug 2006 Posts: 1046 Location: La Confederation Abenaquaise
|
Posted: Tue 10 Nov 2009, 18:15 Post subject:
|
|
.
_________________ *~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog.
*~*~*~*~*~*
Last edited by Eyes-Only on Thu 12 Nov 2009, 14:17; edited 1 time in total
|
Back to top
|
|
 |
Jim1911
Joined: 19 May 2008 Posts: 2460 Location: Texas, USA
|
Posted: Tue 10 Nov 2009, 21:39 Post subject:
|
|
jamesjeffries2,
I'm sure that such an application will be embraced. But, as Eyes-Only said, there is work being done that you may want to check out, for example dposil already has done considerable work on getting apt-get and synaptic to work with his dpup and he expects them to be ready for release later this month.
Welcome back,
Jim
|
Back to top
|
|
 |
technosaurus

Joined: 18 May 2008 Posts: 4878 Location: Blue Springs, MO
|
Posted: Wed 11 Nov 2009, 02:34 Post subject:
|
|
petget (and install.sh) can do a lot of this (pet, tgz and deb) from the command line already, but not rpm AFAIK. I also made a patch to be able to use txz (needs xz and tar 1.22+)
_________________ Check out my github repositories. I may eventually get around to updating my blogspot.
|
Back to top
|
|
 |
gposil

Joined: 06 Apr 2009 Posts: 1305 Location: Stanthorpe (The Granite Belt), QLD, Australia
|
Posted: Wed 11 Nov 2009, 02:48 Post subject:
|
|
The latest rpm as in Mandriva2010, Suse and FC is a bit of a mystery, no one can tell me definitively how to unpack one...rpm2cpio does not work on them...Any clues
_________________
Dpup Home
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2647
|
Posted: Wed 11 Nov 2009, 03:20 Post subject:
|
|
gposil, can you supply a link to one of the rpm's which is not working?
|
Back to top
|
|
 |
gposil

Joined: 06 Apr 2009 Posts: 1305 Location: Stanthorpe (The Granite Belt), QLD, Australia
|
Posted: Wed 11 Nov 2009, 03:52 Post subject:
|
|
ftp://fr2.rpmfind.net/linux/Mandriva/devel/cooker/i586//media/contrib/release/abiword-2.8.1-1mdv2010.0.i586.rpm
_________________
Dpup Home
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2647
|
Posted: Wed 11 Nov 2009, 07:02 Post subject:
|
|
Thanks, I'll see what I can do about this -I've found others which did not unpack with certain tools.
|
Back to top
|
|
 |
aragon
Joined: 15 Oct 2007 Posts: 1698 Location: Germany
|
Posted: Wed 11 Nov 2009, 07:16 Post subject:
|
|
if that helps: 7z shows me that inside the rpm there is the following archive
Code: | abiword-2.8.1-1mdv2010.0.i586.cpio.lzma |
whereas an older rpm has this
Code: | streamripper-1.62.3-8.fc8.i386.cpio.gz |
so maybe it is a problem cpio.gz vs. cpio.lzma.
aragon
_________________ PUPPY SEARCH: http://wellminded.com/puppy/pupsearch.html
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2647
|
Posted: Wed 11 Nov 2009, 12:01 Post subject:
|
|
I think you are onto the answer there aragon -the funny thing is that these brand-new archives are created with a(very) old version of rpm. I have occassionally had problems with some these, but have been able to decompress them using rpm2tgz or disrpm.
I#m going to llok at the rpm-3.x sources being used by these distros to see what is going on.
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2647
|
Posted: Wed 11 Nov 2009, 15:04 Post subject:
|
|
Okay, I cam up with this which seems to work with rpm2cpio, whether from rpm-3.x or rpm-4.x:
Code: | #!/bin/sh
FILE="$1"
FILE_BASENAME=${FILE%.*}
#rpm2cpio test.rpm > "$FILE_BASENAME".cpio.test
#gzip -dc "$FILE_BASENAME".cpio.test > "$FILE_BASENAME".cpio ||rm -f "$FILE_BASENAME".cpio
#bzip2 -dc "$FILE_BASENAME".cpio.test > "$FILE_BASENAME".cpio ||rm -f "$FILE_BASENAME".cpio
#xz -dc "$FILE_BASENAME".cpio.test > "$FILE_BASENAME".cpio ||rm -f "$FILE_BASENAME".cpio
#cpio -i -m -d < test.cpio
rpm2cpio "$FILE" > "$FILE_BASENAME".cpio.test
for method in gzip bzip2 xz ; do
$method -t "$FILE_BASENAME".cpio.test &> /dev/null
if [[ $? = 0 ]] ; then
$method -dc "$FILE_BASENAME".cpio.test > "$FILE_BASENAME".cpio
else
continue
fi
done
if [[ -f "$FILE_BASENAME".cpio ]] ; then
rm -f "$FILE_BASENAME".cpio.test
cpio -i -m -d < "$FILE_BASENAME".cpio &> /dev/null
if [[ $? = 0 ]] ; then
rm -f "$FILE_BASENAME".cpio
echo "Done"
else
echo "Failed cpio"
fi
else
echo "Failed -no compression method found"
fi
|
That may *not* work with the busybox implementation of rp2cpio. I'm still trying to get it working another way as I have another tool which I normally use on rpm'S which does not rpm2cpio, but hexdump instead. But I haven't been able to get the lzma 'magic' bytes properly recognized.
|
Back to top
|
|
 |
jamesjeffries2
Joined: 27 Apr 2008 Posts: 196
|
Posted: Wed 11 Nov 2009, 15:44 Post subject:
|
|
hmm, you are right looks like a lot of the work i was thinking of is already done!
WOW! for me one of the big things that i prefered in other distros was the package manager, but this looks really good.
I'm going to have to rethink this a bit, but I would still like a command version I think for my "puppy server" that I only access over ssh.
|
Back to top
|
|
 |
jamesjeffries2
Joined: 27 Apr 2008 Posts: 196
|
Posted: Wed 11 Nov 2009, 16:09 Post subject:
|
|
So my understanding is this:
- which ever distro the puppy that you are using is based on can use the packages from that distro in the package manager
- and the user can add any repo from said distro
What I want to do is:
- for ANY puppy user to be able to install what ever packages they want.
- and the user can add ANY repo that contains these packages
- and dependencies can be satisfied cross distribution
- all from the command line
Should be a challenge, especially the cross package dependency stuff
|
Back to top
|
|
 |
amigo
Joined: 02 Apr 2007 Posts: 2647
|
Posted: Thu 12 Nov 2009, 03:41 Post subject:
|
|
Mixing programs and libs from different distros -even from different versions of the same distro is a bad idea. And the easier you make doing that, the more problems you create for the user.
Since there are over 1,000 distros out there, why not just build a program which will randomly install one program or library from each of themx --what do you suppose the result would be?
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15588 Location: Paradox Realm
|
Posted: Thu 12 Nov 2009, 05:20 Post subject:
|
|
There are two major sources of files
RPM (Red Hat/Fedora) and OpenSuse also using RPM
I believe.
Would that be a good place to start?
Much linux software offered
seems designed for usage by either Red Hat or Suse . . ..
_________________ Puppy Raspup 8.2 Final
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html 
|
Back to top
|
|
 |
|