On Sun, Dec 5, 2010 at 6:32 PM, kunal ghosh <[email protected]> wrote:
> On Thu, Dec 2, 2010 at 8:55 AM, kunal ghosh <[email protected]> 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/[email protected],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.
>

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
_______________________________________________
belenix-discuss mailing list
http://mail.opensolaris.org/mailman/listinfo/belenix-discuss
http://groups.google.com/group/belenix-discuss

Reply via email to