发新话题
打印

SUN软件包管理的命令:pkginfo、pkgadd和pkgrm

SUN软件包管理的命令:pkginfo、pkgadd和pkgrm

pkginfo 查看当前操作系统已经安装的软件包。 #pkginfo|more  applicationSUNWAxgSolarisXGL3.3AnswerBook applicationSUNWaadmSolaris7SystemAdministratorCollection systemSUNWab2mSolarisDocumentationServerLookup systemSUNWab2rSolarisDocumentationServer systemSUNWab2sSolarisDocumentationServer systemSUNWab2uSolarisDocumentationServer applicationSUNWabdaSunUltra5/10HardwareAnswerBook applicationSUNWabeSolaris7UserCollection applicationSUNWabsdkSolaris7SoftwareDeveloperCollection pkginfo[-d[device|pathname]][-l]pkg_name 参数: -d软件包所在的设备路径 -l软件包的详细描述 pkg_name软件包的名字 #pkginfo-d/cdrom/cdrom0/s0/Solaris_2.7/Product-lSUNWaudio PKGINST:SUNWaudio NAME:Audioapplications CATEGORY:system ARCH:sparc VERSION:3.6.4,REV=1.98.08.13 BASEDIR:/ VENDOR:SunMicrosystems,Inc. DESC:Audiobinaries PSTAMP:dtbuild37s19980813171753 HOTLINEleasecontactyourlocalserviceprovider STATUS:spooled FILES:9spooledpathnames 2directories 3executables 4packageinformationfiles 700blocksused(approx) pkgrm pkgrm用于删除软件包 语法: pkgrmpackage_name #pkgrmSUNWaudio Thefollowingpackageiscurrentlyinstalled: SUNWaudioAudioapplications (sparc)3.6.4,REV=1.98.08.13 Doyouwanttoremovethispackage?y ##Removinginstalledpackageinstance ##Verifyingpackagedependencies. WARNING: Thepackagedependsonthepackage currentlybeingremoved. WARNING: Thepackagedependsonthepackage currentlybeingremoved. WARNING: Thepackagedependsonthepackage currentlybeingremoved. WARNING: Thepackagedependsonthepackage currentlybeingremoved. Dependencycheckingfailed. Doyouwanttocontinuewiththeremovalofthispackage[y,n,?,q] 注:如果某个文件被多个软件包共用,则只当最后的包被删除时才被删除。  pkgadd 使用pkgadd添加软件包 命令格式: pkgadd[-d[device|pathname]]pkg_name  #pkgadd-d/cdrom/cdrom0/s0/Solaris_2.7/ProductSUNWaudio Processingpackageinstancefrom  Audioapplications (sparc)3.6.4,REV=1.98.08.13 Copyright1998SunMicrosystems,Inc.Allrightsreserved. Usingasthepackagebasedirectory. ##Processingpackageinformation. ##Processingsysteminformation. 2packagepathnamesarealreadyproperlyinstalled. ##Verifyingpackagedependencies. ##Verifyingdiskspacerequirements. ##Checkingforconflictswithpackagesalreadyinstalled. ##Checkingforsetuid/setgidprograms. Thispackagecontainsscriptswhichwillbeexecutedwithsuper-user permissionduringtheprocessofinstallingthispackage. Doyouwanttocontinuewiththeinstallationof[y,n,?]y InstallingAudioapplicationsas ##Installingpart1of1. Installationofwassuccessful.

TOP

发新话题