How to compress/decompress SVR4 package

Last time we needed to edit SVR4 package, we hit a couple problems with compressing the cpio archive. Here is our how to:

$ cd package/archive 
$ bunzip2 none.bz2 
$ cpio -id<none

Edit files which you need then in archive directory:

$ find .|sed s%\^\\./%%>list.files
$ vi list.files

Remove "." and "list"

$ cat list.files | cpio -oVc>none
$ bzip2 none

Remove all files and directories except 'none.bz2'

Now you can install or publish SVR4 package as a usual.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Solaris l10n & i18n, locales, keyboards, fonts and related topics.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today