removef(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

removef(8)

removef(8)              System Administration Commands              removef(8)

NAME
       removef - remove a file from SVR4 package database

SYNOPSIS
       removef [ [-M] -R root_path] [-V fs_file] pkginst path...


       removef [ [-M] -R root_path] [-V fs_file] -f pkginst

DESCRIPTION
       removef  informs  the SVR4 packaging system that the user, or software,
       intends to remove a pathname. Output from removef is the list of  input
       pathnames  that  may be safely removed (no other packages have a depen‐
       dency on them).

OPTIONS
       The following options are supported:

       -f

           After all files have been processed, removef should be invoked with
           the -f option to indicate that the removal phase is complete.


       -M

           Instruct removef not to use the $root_path/etc/vfstab file for  de‐
           termining  the client's mount points. This option assumes the mount
           points are correct on the server and it behaves  consistently  with
           Solaris 2.5 and earlier releases.


       -R root_path

           Define  the  full path name of a directory to use as the root_path.
           All files, including package system information  files,  are  relo‐
           cated  to a directory tree starting in the specified root_path. The
           root_path may be specified when  installing  to  a  client  from  a
           server (for example, /export/root/client1).

           removef  inherits  the  value  of  the PKG_INSTALL_ROOT environment
           variable. (See ENVIRONMENT VARIABLES, below.)  If  PKG_INSTALL_ROOT
           is  set,  such  as  when  the  -R  option is used with pkgadd(8) or
           pkgrm(8)

           Note -



             The root file system of any non-global zones must not  be  refer‐
             enced with the -R option. Doing so might damage the global zone's
             file  system,  might  compromise the security of the global zone,
             and might damage the non-global zone's file system. See zones(7).



       -V fs_file

           Specify an alternative fs_file to map the  client's  file  systems.
           For  example,  used  in  situations where the $root_path/etc/vfstab
           file is non-existent or unreliable.


OPERANDS
       The following operands are supported:

       path

           The pathname to be removed.


       pkginst

           The package instance from which the pathname is being removed.


EXAMPLES
       Example 1 Using removef



       The following example uses the removef command in an  optional  pre-in‐
       stall script:


         echo "The following files are no longer part of this package
               and are being removed."
         removef $PKGINST /myapp/file1 /myapp/file2 |
         while read pathname
         do
              echo "$pathname"
              rm -f $pathname
         done
         removef -f $PKGINST || exit 2


ENVIRONMENT VARIABLES
       removef  inherits the value of the following environment variable. This
       variable is set when pkgadd(8) or pkgrm(8) is invoked with the  -R  op‐
       tion.

       PKG_INSTALL_ROOT

           If present, defines the full path name of a directory to use as the
           system's PKG_INSTALL_ROOT path. All product and package information
           files  are then looked for in the directory tree, starting with the
           specified PKG_INSTALL_ROOT path. If not present, the default system
           path of / is used.


EXIT STATUS
       0

           Successful completion.


       >0

           An error occurred.


USAGE
       The removef command is used when removing files from legacy SVR4  pack‐
       ages  created for older Solaris releases. Packages designed for Solaris
       11 and later releases use the IPS package system instead, and  are  in‐
       stalled and managed using the pkg(1) command. There is no direct equiv‐
       alent  to  removef in IPS, as removing packaged files is only supported
       as part of pkg operations.

ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitypackage/svr4


SEE ALSO
       pkginfo(1),  pkgmk(1),  pkgparam(1),  pkgproto(1), pkgtrans(1), attrib‐
       utes(7), installf(8), pkgadd(8), pkgask(8), pkgchk(8), pkgrm(8)

HISTORY
       Support for the -A, -M, and -V options was added in Solaris 2.6.


       Support for the -R option was added in Solaris 2.1.


       The removef utility, including support for the -c and -f  options,  was
       added to Solaris in Solaris 2.0.

Oracle Solaris 11.4               3 Jan 2025                        removef(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3