Thursday, 12 May 2011

Package Administration

Package Administration: how to remove patches/packages are called package administration.
1. Package: A group of files or collection of files are called package.
2. Cluster: A group of packages are called cluster.
3. Patch: Specified no of or specified group of packages are called path
4. Software configuration group: A collection of clusters

Software Configuration groups:
Software config groups                       Software config clusters
1. Entire distribution with OEM                     SUNWXCall (online support)
2. Entire distribution with out OEM                SUNWXCall (no online support)
3. Developer System Support                        SUNWCprog
4. End User Support                                      SUNWCsu
5. Core System Support                                 SUNWCreq
6. Reduced networking support                      SUNWCnreq

OEM: online equipment manage
the software group with OEM will be having online support, where as software group without OEM will not be having online support
Note: By default there will not be any difference between with & without OEM, that is initialization wise, working wise, the amount of space that it takes for installation is almost same.

Note: Every cluster is identified with 'SUNW' (Stanford University of Networking)

1. to check the cluster which presently installed in a system:
# cat /var/sadm/system/admin/CLUSTER

2. to check the installed packages in the harddisk
# pkginfo

3. to know the word count of no. of installed packages in a system.
# pkginfo |wc -l

4. to check the specified installed package
# pkginfo SUNWzsh

5. to remove a package
# pkgrm SUNWzsh

6. to add a package again to system:
               1. insert the OS cd
               2. to view the packages under CDROM
                   bash-3.00# pkginfo -d /cdrom/cdrom0/s0/Solaris_10/Product |more
                   bash-3.00# pkginfo -d /cdrom/cdrom0/s0/Solaris_10/Product SUNWzsh

               3. check the package
                  #pkginfo SUNWzsh

7. to view files & directories which are installed along with the package:
    # pkgchk -v SUNWzsh

8. to check the consistency of the package:
    # pkgchk SUNWzsh

Note: when you add a package by default one is updated automatically
# cat /var/sadm/install/contents

note: every time we cant insert OS CD and installing, so store in buffer called spooling.

Spooling: Storing something temporarily in a buffer is called spooling
when we spool a package we can add the package directly with out OS cd
SPOOL: simultaneous peripheral operational online.
1. to spool a package:
  # pkgadd -d /cdrom/cdrom0/s0/Solaris_10/Product -s spool SUNWzsh

2. all the spooled packages are stored under
   /var/spool/pkg
# cd /var/spool/pkg
# ls
SUNWsh
# pwd
 /var/spool/pkg
# cd
# eject cdrom

now delete zsh:
1. remove zsh
# pkgrm SUNWzsh

2. to get back the package from spool
# pkgadd SUNWzsh

Note:
while adding a package the '-d' option is used, to add a package from removal devices
there is no need of '-d' option to add a package from spool.




No comments:

Post a Comment