Re: [ug-bosug] retrieving packages from an IPS repo.

4 views
Skip to first unread message

kunal ghosh

unread,
Dec 5, 2010, 8:02:09 AM12/5/10
to belenix...@opensolaris.org, Bangalore OpenSolaris User Group
On Thu, Dec 2, 2010 at 8:55 AM, kunal ghosh <kuna...@gmail.com> wrote:
Hi ,

I was trying to download a package from the pkg.openindiana.org/dev  repo, as a first step to convert an ips package to an rpm package.
i used the following command:
pfexec pkgrecv -k -s http://pkg.openindiana.org/dev -d /export/home/kunal/test "archiver/gnu...@1.23,5.11-0.147:20100914T022946Z"
and got a directory full of files which appear to be pieces of the original file ( the pieces appear to be binary dump).
Any suggestions as to how to go ahead ?

ok i finally understood what is happening:

following my last email about how to download an IPS package from a repository.
Actually i was half way through :)

so,

1. get the package "Along with all metadata etc" from the repo using the "pkgrecv" command.

pkgrecv -d tTemp -s "http://pkg.openindiana.org/dev/" "web/aget"

2. open the manifest.file and look for the entry for "group=bin" and path= something that looks familiar to the path
where all binary files are stored.

3. the attribute file ... gives the filename of the binary (Its actually in hash form).

Just a test :
cp <the hash filename> <name of binary>
chmod +x <name of binary>
./<name of binary>
there you go , the binary executes :)


Actually this was step 1 to create a RPM from IPS package.
It would be more useful to mirror the whole IPS repo and then do the conversion locally.

Suggestions / Comments welcome.

regards,
Kunal
 

--
regards
-------
Kunal Ghosh
Dept of Computer Sc. & Engineering.
Sir MVIT
Bangalore,India

Blog:kunalghosh.wordpress.com
Website:www.kunalghosh.net46.net





--
regards
-------
Kunal Ghosh
Dept of Computer Sc. & Engineering.
Sir MVIT
Bangalore,India

Blog:kunalghosh.wordpress.com
Website:www.kunalghosh.net46.net


Sriram Narayanan

unread,
Dec 5, 2010, 1:24:12 PM12/5/10
to kunal ghosh, Bangalore OpenSolaris User Group, belenix...@opensolaris.org

Mirroring the repo is the right thing to do for a number of reasons:
1. you have faster fetches.
2. you can run your tests on a variety of packages.

Please also consider reading and understanding the IPS package
specification. This would be of immense use. I've not read this
myself, but Moinak tells me it's pretty comprehensive by itself.

Please keep the list posted of your progress. I was talking to Moinak
a few minutes ago, and we both discussed how our work and work-place
adventures are exciting enough to keep us away from Belenix work
sometimes !

> regards,
> Kunal
>
>>
>> --
>> regards
>> -------
>> Kunal Ghosh
>> Dept of Computer Sc. & Engineering.
>> Sir MVIT
>> Bangalore,India
>>
>> Blog:kunalghosh.wordpress.com
>> Website:www.kunalghosh.net46.net
>>
>>
>
>
>
> --
> regards
> -------
> Kunal Ghosh
> Dept of Computer Sc. & Engineering.
> Sir MVIT
> Bangalore,India
>
> Blog:kunalghosh.wordpress.com
> Website:www.kunalghosh.net46.net
>
>
>

> _______________________________________________
> belenix-discuss mailing list
> http://mail.opensolaris.org/mailman/listinfo/belenix-discuss
> http://groups.google.com/group/belenix-discuss
>
>

--
==================
Belenix: www.belenix.org
_______________________________________________
ug-bosug mailing list
List-Unsubscribe: mailto:ug-bosug-u...@opensolaris.org
List-Owner: mailto:ug-bosu...@opensolaris.org
List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54

Reply all
Reply to author
Forward
0 new messages