You are on page 1of 15

SOLARIS 10 SSTEM PAKET YNETM

Solaris Paket Ynetimi; Sisteme Sun/Oracle ve ThirdParty rn Software ykleme/kaldrma ilemi yapar.
Solariste ihtiya duyulan paketlerin bir ou iletim
sistemi kurulumunda sisteme otomatik olarak kurulur.

SOLARIS 10 SSTEM PAKET YNETM


/var/sadm/install/contents Dosyas
Sistemdeki tm paketlerin kaytlarnn tutulduu
dosyadr.
Software Paketlerine ait tm dosya ve dizinleri
gsterir.
Sistemde ykl olan tm rnlerin konfigrasyon
bilgilerini ierir.
Bu dosyann ieriine;
# more /var/sadm/install/contents
komutuyla baklabilir.

SOLARIS 10 SSTEM PAKET YNETM


pkgadd komutu; sisteme her yeni paket
yklemesinde /var/sadm/install/contents dosyasnn
ieriini gnceller.
pkgrm komutu; sistemde ykl olan paketlerin
dosyalarnn nerede ykl olduunu
/var/sadm/install/contents dosyasndan renerek
sistemden kaldrr ve sonrasnda bu dosyay
gncelller.
pkgchk komutu; Sistemde ykl olan paketler veya
komutlar hakknda bilgi verir, pathname bilgilerini
gsterir.

SOLARIS 10 SSTEM PAKET YNETM


# pkgchk -l -P showrev
Pathname: /usr/bin/showrev
Type: regular file
Expected mode: 0755
Expected owner: root
Expected group: sys
Expected file size (bytes): 29220
Expected sum(1) of contents: 24082
Expected last modification: Feb 12 20:34:36 2010
Referenced by the following packages:
SUNWadmc
Current status: installed
Pathname: /usr/share/man/man1m/showrev.1m
Type: regular file
Expected mode: 0644
Expected owner: root
Expected group: root
Expected file size (bytes): 3835
Expected sum(1) of contents: 64380
Expected last modification: Jul 30 19:58:05 2009
Referenced by the following packages:
SUNWman
Current status: installed
4

SOLARIS 10 SSTEM PAKET YNETM

PAKET FORMATLARI
Solaris letim Sistemi Paketleri ki Formatta Olabilir;
File system format
Data stream format

SOLARIS 10 SSTEM PAKET YNETM


File System Format
Paket ismini tayan bir dizin altnda pkginfo ve pkgmaps gibi paket
dosyalar ve dizinlerini ierir.
File system format iin bir paket rnei(SUNWzsh) :
# ls -ld SUNWzsh
drwxr-xr-x 5 root staff 2048 Dec 14 03:53 SUNWzsh
# cd SUNWzsh
# ls -l
total 127
drwxr-xr-x 2 root staff 2048 Dec 14 03:53 archive
drwxr-xr-x 2 root staff 2048 Dec 14 03:53 install
-rw-r--r-- 1 root staff 445 Dec 14 02:55 pkginfo
-rw-r--r-- 1 root staff 58248 Dec 14 02:55 pkgmap
drwxr-xr-x 3 root staff 2048 Dec 14 03:53 reloc
#

SOLARIS 10 SSTEM PAKET YNETM


Data Stream Format
nternetten indirilen paketler genelde Data Stream
Formattadr.
data stream format iin bir rnek:
# ls -lh SUNWscat5.2-GA-sparc.pkg
-rw-r--r-- 1 root
root
82M Dec 14 10:51 SUNWscat5.2-GA-sparc.pkg
# file SUNWscat5.2-GA-sparc.pkg
SUNWscat5.2-GA-sparc.pkg:
package datastream
# head SUNWscat5.2-GA-sparc.pkg
# PaCkAgE DaTaStReAm
SUNWscat 1 175299
# end of header
PKG=SUNWscat
ARCH=sparc
CATEGORY=application
DESC=Solaris Crash Dump Analysis Tool
VENDOR=Sun Microsystems, Incorporated
EMAIL=SolarisCAT_Feedback@Sun.COM
CLASSES=none
#
7

SOLARIS 10 SSTEM PAKET YNETM

Command-line (CLI) Package Tools


(Paket ynetim komutlar)

Tool

Description

pkgtrans

Paket trn bir formattan dier formata evirir.

pkgadd

Sisteme Paket ykler.

pkgrm

Sistemden paket kaldrr.

pkginfo

Paket bilgilerini gsterir.

pkgchk

Paketin ynlenme durumunu kontrol eder.

SOLARIS 10 SSTEM PAKET YNETM


Sistemde ykl olan paket bilgilerini grntleme
(pkginfo);
/var/sadm/pkg dizini sistemde ykl olan paketlerin
kaytlarnn tutulduu yerdir. pkginfo komutu bilgileri
bu dizinden raporlar.
# pkginfo | more
system SUNWaccr System Accounting, (Root)
system SUNWaccu System Accounting, (Usr)
system SUNWaclg Apache Common Logging
system SUNWadmap System administration applications
system SUNWadmc System administration core libraries
system SUNWadmfw System & Network Administration Framework
system SUNWadmj Admin/Install Java Extension Libraries
system SUNWadmr System & Network Administration Root
ALE SUNWciu8 Simplified Chinese (EUC) iconv modules for UTF-8
CTL SUNWctpls Portable layout services for Complex Text Layout support
....

SOLARIS 10 SSTEM PAKET YNETM


-Ensolda paketin kategorisi belirtiliyor (system,
Complex Text Layout (CTL) veya Alternate Language
Environment (ALE))
-Ortadaki blmde paket ismi grntlenir. SUNW ile
balyorsa paketin Sun Microsystems rn olduu
anlalr. Deilse third-party bir rndr.
-En sada paket hakknda ksa bilgi mevcuttur.

10

SOLARIS 10 SSTEM PAKET YNETM


Tm paketlerin tm bilgilerini grntlemek iin ;
pkginfo l kommutu kullanlr.
Herhangi bir paketin tm bilgilerini grntlemek iin;
pkginfo -l pkgname komutu kullanlr.

Sistemde ykl olan paket saysn renmek iin;


pkginfo | wc l komutu kullanlr.
11

SOLARIS 10 SSTEM PAKET YNETM


Paket Ykleme
Pkgadd komutu yklenecek paket dosyalarn nce sistemin lokal diskine
ykler, daha sonra uncompress eder.
rnekte File System formattaki SUNWvts paketlerini sisteme yklyoruz;
# cd /cdrom/cdrom0/Solaris_10/ExtraValue/CoBundled/SunVTS_6.0/Packages
# pkgadd -d . SUNWvts
Processing package instance <SUNWvts> from
</cdrom/cdrom0/Solaris_10/ExtraValue/CoBundled/SunVTS_6.0/Packages>
SunVTS Framework(i386) 6.0,REV=2004.12.02.12.00
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Use is subject to license terms.
Using </opt> as the package base directory.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
This package contains scripts which will be executed with super-user permission during the process of installing this
package. Do you want to continue with the installation of <SUNWvts> [y,n,?] y
Installing SunVTS Framework as <SUNWvts>
## Installing part 1 of 1.
9213 blocks
Installation of <SUNWvts> was successful.
12

SOLARIS 10 SSTEM PAKET YNETM


Bu rneimizde ise Data Stream formattaki bir paketi
yklyoruz;
# pkgadd -d /tmp/SUNWzsh.pkg all
Processing package instance <SUNWzsh> from </tmp/SUNWzsh.pkg>
Z shell(i386) 11.10.0,REV=2004.12.10.01.10
Copyright 2004 Sun Microsystems, Inc. All rights reserved.
Using </> as the package base directory.
## Processing package information.
## Processing system information. 5 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs. Installing Z shell as <SUNWzsh>
## Installing part 1 of 1. 1790 blocks Installation of <SUNWzsh> was successful.
#

13

SOLARIS 10 SSTEM PAKET YNETM


pkgchk komutu bir paketin sistemde sorunsuz bir
ekilde yklenip yklenmediini kontrol eder.
Eer komut kts herhangi bir grnt vermiyorsa
kontrol edilen paketin sisteme dzgn bir ekilde
yklendiini gsterir.
# pkgchk SUNWexplo
#

Bir paketin ierdii dosyalar grntlemek iin v


opsiyonunu kullanrz;
# pkgchk -v SUNWexplo
/opt/SUNWexplo
/opt/SUNWexplo/LICENSEREADME
/opt/SUNWexplo/LICENSEREADME/DISTRIBUTIONREADME.txt
/opt/SUNWexplo/LICENSEREADME/LICENSE.txt
/opt/SUNWexplo/LICENSEREADME/SLA_MULTI_LANG.txt
/opt/SUNWexplo/LICENSEREADME/THIRDPARTYLICENSEREADME.txt
/opt/SUNWexplo/bin
......
14

SOLARIS 10 SSTEM PAKET YNETM


pkgrm komutu sistemden bir paketi ve paketle
ilintili dosyalar remove eder.
Bir paketi kaldrrken paketin kaldrlacana dair onay
istenir. Eer paketin baka dosya veya paketlerle
bamll varsa ikinci kez onay ister. Baml
paketleri kaldrrken daha dikkatli olunmas gerekir.
# pkgrm SUNWapchr
The following package is currently installed:
SUNWapchr Apache Web Server (root)
(i386) 11.10.0,REV=2004.12.10.01.10
Do you want to remove this package? [y,n,?,q] y
......
.......
Removal of <SUNWapchr> was successful.

15

You might also like