On Tue, Jun 17, 2008 at 5:26 PM, Stephen Hahn <[EMAIL PROTECTED]> wrote:
> * Dennis Clarke <[EMAIL PROTECTED]> [2008-06-17 17:18]:
>> I like this "dumb question" trend.
>>
>> How do I remove a package from the system ?
>>
>> -bash-3.2# pkginfo -l SUNWsmbau
>>    PKGINST:  SUNWsmbau
>>       NAME:  samba - A Windows SMB/CIFS fileserver for UNIX (Usr)
>>   CATEGORY:  system
>>       ARCH:  i386
>>    VERSION:  11.11.0,REV=2008.03.19.13.46
>>     VENDOR:  Sun Microsystems, Inc.
>>       DESC:  samba - A Windows SMB/CIFS fileserver for UNIX (Usr)
>>    HOTLINE:  Please contact your local service provider
>>     STATUS:  completely installed
>>
>> -bash-3.2# pkgchk -l SUNWsmbau | grep Pathname
>> WARNING: Package <SUNWsmbau> is installed but empty
>>
>> okay .. I want to remove that ... how ?
>
>  $ pkg search -r SUNWsmbau
>
>  shows that pkg:/SUNWsmba and pkg:/SUNWlibsmbclient deliver a legacy
>  action for SUNWsmbau.  We could use the HOTLINE field to identify this
>  as a pkg(5) legacy action, I suppose.
>
>  $ pfexec pkg uninstall SUNWsmba SUNWlibsmbclient

hrmmmmm ....

well .. first thing I did was .. look at this

http://www.blastwave.org/man/pkg_1.html

and this

http://www.blastwave.org/man/pkglist_os200805.html

Then I tried a safe ( -n ) uninstall.

-bash-3.2# pkg uninstall -nrv SUNWsmbau
en_CA.ISO8859-1: unknown locale
pkg: 'SUNWsmbau' not even in catalog!

eek !

-bash-3.2# pkgrm SUNWsmbau

The following package is currently installed:
  SUNWsmbau  samba - A Windows SMB/CIFS fileserver for UNIX (Usr)
             (i386) 11.11.0,REV=2008.03.19.13.46

Do you want to remove this package? [y,n,?,q] y
pkgrm: ERROR: unable to change current working directory to
</var/sadm/pkg/SUNWsmbau/install>

Removal of <SUNWsmbau> failed (internal error).
No changes were made to the system.
-bash-3.2#

that was ugly too

>  will uninstall those two packages.

ummm .. nope

-bash-3.2# pkg uninstall SUNWsmba SUNWlibsmbclient
pkg: 'SUNWsmba' matches no installed packages

>> Also .. I went looking for smbd and it doesn't exist anywhere that I can see.
>
>  $ pkg search -r smbd
>
>  shows that pkg:/SUNWsmba delivers a /usr/sbin/smbd while pkg:/SUNWsmbs
>  delivers /usr/lib/smbsrv/smbd.

that is *wild* because I see this

-bash-3.2# pkg search -r smbd
en_CA.ISO8859-1: unknown locale
INDEX      ACTION    VALUE                     PACKAGE
basename   file      usr/lib/smbsrv/smbd       pkg:/[EMAIL PROTECTED]
basename   file      usr/lib/smbsrv/smbd       pkg:/[EMAIL PROTECTED]
basename   file      usr/lib/smbsrv/smbd       pkg:/[EMAIL PROTECTED]
basename   link      usr/sbin/smbd             pkg:/[EMAIL PROTECTED]
basename   link      usr/sbin/smbd             pkg:/[EMAIL PROTECTED]
basename   link      usr/sbin/smbd             pkg:/[EMAIL PROTECTED]
basename   link      usr/sbin/smbd             pkg:/[EMAIL PROTECTED]
basename   file      usr/lib/smbsrv/smbd       pkg:/[EMAIL PROTECTED]
basename   link      usr/sbin/smbd             pkg:/[EMAIL PROTECTED]
basename   file      usr/lib/smbsrv/smbd       pkg:/[EMAIL PROTECTED]
basename   link      usr/sbin/smbd             pkg:/[EMAIL PROTECTED]

-bash-3.2# pkg list | grep smb
SUNWlibsmbclient                              3.0.28-0.86     installed  ----
SUNWsmbfs                                     0.5.11-0.86     installed  ----
SUNWsmbfskr                                   0.5.11-0.86     installed  ----

cool right ?

-bash-3.2# find /usr -type f -name smbd

returns nothing. which is not cool.

-bash-3.2# pkg search -r smbd | tail +2 | awk 'BEGIN{ print
"#!/bin/ksh" }{ print "ls -lapin /" $3 }'
#!/bin/ksh
ls -lapin /usr/lib/smbsrv/smbd
ls -lapin /usr/lib/smbsrv/smbd
ls -lapin /usr/lib/smbsrv/smbd
ls -lapin /usr/sbin/smbd
ls -lapin /usr/sbin/smbd
ls -lapin /usr/sbin/smbd
ls -lapin /usr/sbin/smbd
ls -lapin /usr/lib/smbsrv/smbd
ls -lapin /usr/sbin/smbd
ls -lapin /usr/lib/smbsrv/smbd
ls -lapin /usr/sbin/smbd

run that ...

/usr/lib/smbsrv/smbd: No such file or directory
/usr/lib/smbsrv/smbd: No such file or directory
/usr/lib/smbsrv/smbd: No such file or directory
/usr/sbin/smbd: No such file or directory
/usr/sbin/smbd: No such file or directory
/usr/sbin/smbd: No such file or directory
/usr/sbin/smbd: No such file or directory
/usr/lib/smbsrv/smbd: No such file or directory
/usr/sbin/smbd: No such file or directory
/usr/lib/smbsrv/smbd: No such file or directory
/usr/sbin/smbd: No such file or directory
-bash-3.2#

so this Samba 3.0.28 thing is installed ... isn't it?  Because pkg says so.

I only ask because I have Samba 3.0.30 to install and wonder what I'll
tromp over if I do an install but .. geez .. it isn't there even if I
wanted to uninstall it.

am I confused ?

Dennis
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to