Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.


  Search this Thread
Old 06-27-2008, 10:01 AM   #1
Registered: May 2008
Posts: 155

Rep: Reputation: 30
a question on packaging....Struck with a dir format, unable to convert it into .pkg!!

Hi all,

I just created a pkg to see if i could make one
I am 100% newbie.
But i am not able to get the .pkg extension at all..
When i go into /var/spool/pkg my newly created pkg is listed but its in a dir format...
i know that it will be created as a dir itself but how do i convert it into a pkg??

bash-3.2# pkgmk
## Building pkgmap from package prototype file.
## Processing pkginfo file.
WARNING: parameter <PSTAMP> set to "Harivayu20080627201208"
WARNING: parameter <CLASSES> set to "none"
## Attempting to volumize 13 entries in pkgmap.
part  1 -- 60 blocks, 37 entries
## Packaging one part.
## Validating control scripts.
## Packaging complete.
then the pkgmap looks like this in /var/spool/pkg/<my pkg>/
: 1 60
1 d none SHAMpk 0755 root root
1 d none SHAMpk/Advanced 0755 root root
1 f none SHAMpk/Advanced/afile1 0644 root root 0 0 1214593105
1 f none SHAMpk/Advanced/afile2 0644 root root 0 0 1214593105
1 f none SHAMpk/Advanced/afile3 0644 root root 0 0 1214593105
1 d none SHAMpk/Help 0755 root root
1 f none SHAMpk/Help/hfile1 0644 root root 0 0 1214593093
1 f none SHAMpk/Help/hfile2 0644 root root 0 0 1214593093
1 d none SHAMpk/Tutorials 0755 root root
1 f none SHAMpk/Tutorials/tfile1 0644 root root 0 0 1214593052
1 f none SHAMpk/Tutorials/tfile2 0644 root root 0 0 1214593052
1 f none SHAMpk/Tutorials/tfile3 0644 root root 0 0 1214593052
1 f none SHAMpk/pkginfo 0644 root root 120 9596 1214592802
1 i pkginfo 162 12706 1214597528
could anyone tell me how i can create a pkg out of this dir structure?

Old 06-28-2008, 04:15 AM   #2
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Tribblix, Ubuntu/WSL
Posts: 9,773

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
The pkgtrans command allows to convert a file system format package to a datastream one which is really what a .pkg file is.
Old 06-28-2008, 09:23 AM   #3
Registered: May 2008
Posts: 155

Original Poster
Rep: Reputation: 30

But i just figured that one out a couple of hrs ago myself.
So now i have created a pkg for myself, as of now it does nothing but have empty files ...
After using the pkgtrans cmd i was able to create a .pkg data stream that installs perfectly..

Now i would like to contribute to the community..
But i dont know the repository that holds the various pkg objects and how to create it?
Can you kindly give me more details on this?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to format ntfs partition using ntfsprogs pkg. mrj Fedora 1 12-16-2007 07:29 AM
How to convert rm format music files to mp3 format me4linux Linux - Software 2 05-15-2007 01:45 PM
use vi to convert linux format to windows format intolinux Linux - Software 2 12-10-2003 10:20 PM
Red Carpet: Unable to acess packaging subsystem Gai-jin Linux - Software 2 03-13-2003 06:07 AM > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration