Hitchhiker's Guide to Openbsd


Download 1.27 Mb.
Pdf ko'rish
bet243/258
Sana04.04.2023
Hajmi1.27 Mb.
#1328980
1   ...   239   240   241   242   243   244   245   246   ...   258
Bog'liq
obsd-faq49

Note: The -u switch relies on the 
PKG_PATH
environment variable. If it is not set, pkg_add(1) will not 
be able to find updates. 
Starting with OpenBSD 4.2, having several entries in 
PKG_PATH
does no longer mean all entries will 
be tried for update operations. Instead, pkg_add(1) will stop at the first path with matching candidates. 
If you had a configuration file belonging to the old version, which you modified, it will be left 
untouched by default. You can, however, replace it with the default configuration file of the new 
version, by calling pkg_add(1) with the -c flag. 
15.2.7 - Removing installed packages
To delete a package, simply take the proper name of the package as shown by pkg_info(1) (see 
Listing 
installed packages
above) and use 
pkg_delete(1)
to remove the package. In the example below, the 
screen package is being removed. Notice that on some occasions there are instructions of extra items that 
http://www.openbsd.org/faq/faq15.html (9 of 27)9/4/2011 10:02:29 AM


15 - The OpenBSD packages and ports system
need to be removed that pkg_delete(1) did not remove for you. As with the pkg_add(1) utility, you can 
use the -v flag to get more verbose output. 
sudo pkg_delete screen
screen-4.0.3p1: complete
Clean shared items: complete
Note: Often, it is not necessary to specify the version numbers and flavors with the package name, since 
pkg_delete(1) will usually be able to find the full name by itself. You need to specify the complete 
package name (in the example, that is screen-4.0.3p1) only if ambiguity is possible due to multiple 
installed packages with the specified name. In that case pkg_delete(1) cannot know which package to 
delete. 
For safety, pkg_delete(1) will not remove configuration files if they have been modified. Instead it will 
inform you about this as follows: 
sudo pkg_delete screen
screen-4.0.3p1: complete
Clean shared items: complete 
--- screen-4.0.3p1 -------------------
You should also remove /etc/screenrc (which was modified)
If you prefer to have those configuration files removed automatically, you can do so by using the -c flag. 

Download 1.27 Mb.

Do'stlaringiz bilan baham:
1   ...   239   240   241   242   243   244   245   246   ...   258




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling