Re: Purge all removed packages ?



Mehmet Fatih AKBULUT wrote:

how can i purge all removed packages ?
does freebsd has something like this : *dpkg -l | awk '/^rc/ {print $2}' |
xargs dpkg --purge *??? (which works on debian!)

The FreeBSD package system doesn't really have the concept of a special command to remove files that are part of a package but which are user editable and preserved when the main body of the package is removed.

In general, preservation of local configuration is handled in one of
three ways:

  i) It isn't preserved at all.  Deleting the port/package will delete
     the configuration files you spent hours tuning to be just right...

 ii) The port installs sample configuration files which you have to copy
     and edit as part of the installation.  Thus the configuration file
     doesn't count as part of the package and will be left behind when
     the package is deleted.

iii) Very similarly to (ii) a sample configuration file is installed but
     the actual configuration file is automatically created as a copy of
     the sample if the actual file doesn't exist.  At deinstall time, the
     sample and actual configuration files are compared, and the actual
     configuration file will be left untouched if they differ (implying
     that the actual configuration file has been modified).

Remember that in FreeBSD as upgrading a port/package involves a deinstall
followed by an install of the new version, so configuration file handling
is something that most porters pay quite a lot of attention to.  Packages
that use method (i) tend to be quite rare in the tree nowadays.

This does mean that if you delete a bunch of installed packages you tend
to be left with a scattering of miscellaneous files which you would have
to deal with manually if you wanted to get rid of them.  Generally those
files will be found in ${PREFIX}/etc/ (usually /usr/local/etc, but quite
often /usr/X11R6/etc) or subdirectories thereof.  Note that this only
applies to 3rd party software installed via ports/packages.  The base system
has a completely different mechanism for handling updates.

	Cheers,

	Matthew


-- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW _______________________________________________ freebsd-questions@xxxxxxxxxxx mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Errors Installing SQL 2005 Enterprise on Windows 2008 Failover cluster
    ... therefore Report Server feature ... Breaking wait state and aborting package due to cancel code received: ... All installs have been cancelled, so package: ...
    (microsoft.public.sqlserver.setup)
  • Re: What do you LISPers think of Haskell?
    ... misleading at best given that there are only 10,911 installs of FFTW ... These wild variations are due to new package releases so this does not ... of course, written in OCaml. ...
    (comp.lang.lisp)
  • Re: =?iso-8859-1?q?can=B4t_get_kde=2C_can=B4t_get_gnome=2E=2E=2Ew?= =?iso-8859-1?q?h
    ... You can remove a package or a group of packages via yum. ... The last two installs that fell apart on me just this week I changed nothing at all in yum. ... In one of the installs, I tried to update everything at once, and was subsequently advised not to do so. ... Updating kde-base and various other essential kde libs. ...
    (Fedora)
  • Configuration file and auxiliary packages
    ... Having hundreds of machines means ... For many packages we have site-specific configuration files we want set up ... install of a package. ... installs, etc.) but these complicate package installation considerably. ...
    (Debian-User)
  • Re: What Access Runtime files are needed to deploy? (2002/XP)
    ... I will definitely do the upgrade to 2003 if it creates a smaller package. ... > installs came about to 15 megs in size. ... > the activeX controls during a install (assuming you stick to the controls ... > windows 98SE, or windows xp. ...
    (comp.databases.ms-access)