Tuesday 19 May 2009

Mengenai pkg

Saya biasa menggunakan command berikut terkait instalasi paket di solaris :
#pkginfo -l (menampilkan package dengan parameter long listing)


Sebenarnya banyak opsi lain
usage:
pkginfo [-q] [-pi] [-x|l] [options] [pkg ...]
pkginfo -d device [-q] [-x|l] [options] [pkg ...]
where
-q #quiet mode
-p #select partially installed packages
-i #select completely installed packages
-x #extracted listing
-l #long listing
-r #relocation base
and options may include:
-c category, [category...]
-a architecture
-v version


untuk mencari package yang partially installed(p) dan extracted listing(x):

#pkginfo -xp

SMCosl98d openssl
(sparc) 0.9.8d

Untuk mencari paket yang completely installed(i) , dengan extracted listing(x), dan architecture sparc
#pkginfo -xia sparc

Install paket
#pkgadd -d . nama_package

Remove paket
#pkgrm nama_package

Check status paket
#pkgchk -l SUNWzuluw

Pathname: /usr/openwin
Type: directory
Expected mode: 0755
Expected owner: root
Expected group: bin
Referenced by the following packages:
SUNWctlu SUNWcsu SUNWxwice SUNWxwcft SUNWtltk
SUNWjxmft SUNWxwicx SUNWeurf SUNWkoi8f SUNWkxmft
SUNWlccom SUNWadmap SUNW1251f SUNW5xmft SUNWxwacx
SUNWmp SUNWxilrl SUNWxildh SUNWxilow SUNWolrte
SUNWpmowu SUNWarrf SUNWi13rf SUNWi15rf SUNWi15cs
SUNWi1cs SUNWi2rf SUNWi5rf SUNWi7rf SUNWi9rf
SUNWcxmft SUNWtltkx SUNWeuodf SUNWxi18n SUNWxim
SUNWeuxwe SUNWtxfnt SUNWulocf SUNWuxlcf SUNWxi18x
SUNWximx SUNWuxlcx SUNWvid SUNWxilvl SUNWxwcsl
SUNWxwdim SUNWxwdem SUNWxwdxm SUNWxwfs SUNWxwoft
SUNWxwpft SUNWxwpsr SUNWxwpl SUNWxwxst SUNWxwxft
SUNWxwxstx SUNWxwxftx SUNWi4rf SUNWi8rf SUNWzuluw
SUNWnamow SUNWplow SUNWplow1 SUNWi1of SUNWxwfnt
SUNWxwopt SUNWxwsrv SUNWm64w SUNWpfbw SUNWxwplt
SUNWxwplx
Current status: installed