Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 29 Jul 2014, 23:02
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
multi package manager
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Author Message
jamesjeffries2

Joined: 27 Apr 2008
Posts: 196

PostPosted: 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
View user's profile Send private message 
Eyes-Only


Joined: 10 Aug 2006
Posts: 1046
Location: La Confederation Abenaquaise

PostPosted: Tue 10 Nov 2009, 18:15    Post subject:  

.
_________________
*~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog. Cool
*~*~*~*~*~*

Last edited by Eyes-Only on Thu 12 Nov 2009, 14:17; edited 1 time in total
Back to top
View user's profile Send private message 
Jim1911

Joined: 19 May 2008
Posts: 2445
Location: Texas, USA

PostPosted: 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
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4284

PostPosted: 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+)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: 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
View user's profile Send private message Visit poster's website MSN Messenger 
amigo

Joined: 02 Apr 2007
Posts: 2225

PostPosted: 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
View user's profile Send private message 
gposil


Joined: 06 Apr 2009
Posts: 1305
Location: Stanthorpe (The Granite Belt), QLD, Australia

PostPosted: 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
View user's profile Send private message Visit poster's website MSN Messenger 
amigo

Joined: 02 Apr 2007
Posts: 2225

PostPosted: 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
View user's profile Send private message 
aragon

Joined: 15 Oct 2007
Posts: 1698
Location: Germany

PostPosted: 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
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2225

PostPosted: 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
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2225

PostPosted: 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
View user's profile Send private message 
jamesjeffries2

Joined: 27 Apr 2008
Posts: 196

PostPosted: 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
View user's profile Send private message 
jamesjeffries2

Joined: 27 Apr 2008
Posts: 196

PostPosted: 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
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2225

PostPosted: 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
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: 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 WIKI
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [26 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0768s ][ Queries: 12 (0.0048s) ][ GZIP on ]