. Solaris
,
"pkgadd" "pkgrm",
.
,
, . ,
,
"pkgadd".
Unix, Internet,
,
. , .. Unix
.
Original is here
(standalone
sys),
server/dataless/diskless - (
).
1.
2. :
/usr/sbin/pkgadd -d ____ _
:
/usr/sbin/pkgadd -d /cdrom/solaris_2_5/s0/Solaris_2.5 SUNWpkgA
( ).
:
/usr/sbin/pkginfo -d ____
: Solaris
, .
(
, ..),
. , AnswerBook ,
: .
, CD-ROM
, AnswerBook,
""
. , 7 !!!
-----------------------------------------------------------------
/usr/sbin/pkgchk <_>
-----------------------------------------------------------------
/usr/bin/pkginfo -l <_>
:
pkginfo -l SUNWcar
PKGINST: SUNWcar
NAME: Core Architecture, (Root)
CATEGORY: system
ARCH: sparc.sun4m
VERSION: 11.5.1,REV=94.07.15.22.10
BASEDIR: /
VENDOR: Sun Microsystems, Inc.
DESC: Core Architecture, (Root)
PSTAMP: fourstar940718191413
INSTDATE: Aug 16 1995 03:39
HOTLINE: Please contact your local service provider
STATUS: completely installed
FILES: 51 installed pathnames
16 shared pathnames
7 directories
29 executables
3794 blocks used (approx)
---------------------------------------------------------------
/usr/sbin/pkgrm <_>
---------------------------------------------------------------
(swmtool 2.4 admintool 2.5)
AnswerBook .
SWMTOOL
:
1.
2. ,
3. :
/usr/sbin/swmtool &
, -
,
( INSTALL/REMOVE
) , , ,
" , (property)"
, swmtool ,
CD-ROM .
, CD-ROM swmtool.
Props... (), ,
() Source Media
, .
, Media Type Mounted Directory, Directory
Name /cdrom/cdrom0 ( CD-ROM
) Apply.
,
swmtool.
: ( - -
, , 3
- - ,
-
),
.
Begin Installation ( ).
/ pkgadd. ,
, .:
...
, , Remove,
(), ,
Begin Removal.
,
, "pkgadd"
. .
, 3 : "MyProg.bin", "Myprog.lib"
"MyProg.man", "/usr/local/bin",
"/usr/local/lib" "/usr/local/man" .
, :
) ,
"pkgmk", .
"~/tmp/MyPackage".
) ,
,
. .. :
~/tmp/MyPackage/bin/MyProg.bin, ~/tmp/MyPackage/lib/MyProg.lib
~/tmp/MyPackage/man/MyProg.man
) "pkginfo" "prototype".
(
,
man -s4 pkginfo
man -s4 prototype
"prototype":
!PROJDIR=/usr/local
1 i pkginfo=pkginfo
1 d none bin 0755 root other
1 f none bin/MyProg.bin 0644 root other
1 d none lib 0755 poul insects
1 f none lib/MyProg.lib 0644 root other
1 d none man 0755 poul insects
1 f none man/MyProg.man 0644 root other
"pkginfo":
PKG=MyProg
NAME=MyPackage
ARCH=sparc
VERSION=Version 1.0
CATEGORY=application
VENDOR=Pavel K. Klodin
EMAIL=webmaster@reksoft.ru
PSTAMP=Pstamp
BASEDIR=/usr/local
CLASSES=none
) , ,
:
cd ~/tmp/MyPackage
pkgmk -o -d /tmp -r .
"/tmp" "MyPackage"
.
"pkgadd". ) , , (
"su -"):
cd /tmp
pkgadd -d .
: ,
:
( );
" " (stream packages).
,
-
(, , ).
, ""
. 2
"pkgtrans".
pkginfo {pkg} - test for presents of package.
pkgadd -d /cdrom/Solaris_2.3 <pkg ...>
- add missing packages
pkgrm {pkg ...} - remove packages.
pkgchk -q {pkg} - test for existance of package
pkgchk {options} [pkg] - check installed packages for
integrity.
Let's say your Solaris2 workstation is called "sol" and the
4.1.x server is called "bertha" and you want the printer name
to be "printer" (imaginative, eh?).
sol# lpsystem -t bsd bertha # says bertha is a bsd system
sol# lpadmin -p printer -s bertha # creates "printer" on "sol"
# to be printed on "bertha"
sol# accept printer # allow queuing
sol# enable printer # allow printing
sol# lpstat -t # check the status
sol# lpadmin -d printer # default
To get transparent mode, try this:
lpadmin -I any -p printer
rpm -i filesystem-1.2-1.i386.rpm
rpm --erase filesystem-1.2-1
rpm -qa
, :
rpm2cpio < packetname-1.2-1.i386.rpm | cpio -it
rpm2cpio < packetname-1.2-1.i386.rpm | cpio -it rpm2cpio < packet
name-1.2-1.i386.rpm | cpio -it
rpm2cpio < packetname-1.2-1.i386.rpm | cpio -it
, :
rpm -l nfs-server-2.2beta16-5
RedHat . security updates
ftp://ftp.funet.fi/pub/Linux/mirrors/redhat/redhat/redhat-4.2/updates/i386/
rpm -Uvh samba-1.9.18p7-0.i386.rpm
HP-UX SAM.
swlist -l product
swpackage
/usr/sbin/swpackage -s $DEPOTDATA/$PSFFILE -x media_type=tape @ $DEPOTDIR/$DEPOTNAME.depot;
psf ( man 5 swpackage),
)
psf :
# PSF file which defines an example product.
depot
layout_version 1.0
# Vendor definition:
vendor
tag AS
title Kaspersky Labs, Ashmanov & Partners
description AS Software Distributor
category
tag antivirus_sft
title Antiviral Sofware
description These are the aniviral software
revision 1.0
end
# Product definition:
product
tag VSAPI
revision A.@VSAPI_VERSION@
architecture @OS@_@OS_RELEASE@_32/64
vendor_tag AS
title The aniviral software, HP OpenMail Kaspersky Labs VSAPI patch
number B2002A
category_tag openmail_path
description < data/descr.sd
copyright < data/copyr.sd
readme < data/README
machine_type *
os_name @OS@
os_release ?.@OS_NUMBER@.*
os_version ?
directory /
is_locatable false
# Create a product script which executes during the swremove
# analysis phase. (This particular script returns an ERROR,
# which prevents the removal of the VSAPI product.)
fileset
tag Files
file ./vsapi/libvsapi.@so_suffix@ /etc/iscan/libvsapi.@so_suffix@
file ./vsapi/vsapi.cfg /etc/iscan/vsapi.cfg
file ./openmail_var/rules/ALL-ROUTES.VIR_2
/var/opt/openmail/rules/ALL-ROUTES.VIR
file ./openmail_var/rules/ndninfo.txt
/var/opt/openmail/rules/ndninfo.txt
#control_files
postinstall ./data/postinstall
postremove ./data/postremove
end
Last-modified: Tue, 26 Nov 2002 18:40:05 GMT