pavement

Pkg deinstall

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (categorization)
(sysutils -> ports-mgmt)
 
(One intermediate revision by one user not shown)
Line 7: Line 7:
 
* You can deinstall several ports at once : "pkg_deinstall foo bar foobar".
 
* You can deinstall several ports at once : "pkg_deinstall foo bar foobar".
 
** The ports are not removed in the order they are in the commandline but regarding to their dependencies. For example, if "bar" depends on "foo" and "foobar", '''pkg_deinstall''' will remove "foo" and "foobar", and then, "bar".
 
** The ports are not removed in the order they are in the commandline but regarding to their dependencies. For example, if "bar" depends on "foo" and "foobar", '''pkg_deinstall''' will remove "foo" and "foobar", and then, "bar".
 +
 +
Note: '''pkg_deinstall''' is a part of the ports-mgmt/[[portupgrade]] port.
  
 
[[Category:System Commands]]
 
[[Category:System Commands]]

Latest revision as of 00:45, 7 January 2012

pkg_deinstall is used to remove installed ports from the system. pkg_deinstall first check the port's dependencies : if any port requires the one you want to remove, the deinstallation will fail, and the list of the slave ports will be displayed.

To deinstall a port, type

# pkg_deinstall ThePortToRemove
  • You can use the "-r" flag to remove a port and all the ports depending on it.
  • You can deinstall several ports at once : "pkg_deinstall foo bar foobar".
    • The ports are not removed in the order they are in the commandline but regarding to their dependencies. For example, if "bar" depends on "foo" and "foobar", pkg_deinstall will remove "foo" and "foobar", and then, "bar".

Note: pkg_deinstall is a part of the ports-mgmt/portupgrade port.

Personal tools