Editing Pkg
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
== Introduction == | == Introduction == | ||
− | ''' | + | '''pkgng''' is the next generation replacement for the traditional FreeBSD package management tools, offering many features that make dealing with binary packages faster and easier. [[File:Icon FreeBSD.png|50px|link=https://www.freebsd.org/doc/handbook/pkgng-intro.html]] |
− | + | ||
+ | For beginners with GhostBSD it is a bit confusing which package manager is now working on my computer. | ||
+ | |||
+ | For now pkgng is a synonym for pkg. It emphasize, that the package manager '''pkgng''' is a new version from '''pkg''' and is designed to work with versions of FreeBSD starting with 10.X. [https://www.freebsd.org/doc/handbook/pkgng-intro.html see also 4.4.1. Getting Started with pkg on the FreeBSD Handbook]. The differences between pkg and pkgng are described on page [[pkg#More Differences between pkg and pkgng|pkg]] | ||
+ | |||
+ | '''Important:''' Once the package database has been converted to the new pkg format, <br/>the traditional pkg_* tools should no longer be used. <br/>And from this time on is '''pkg''' the name of the new generation package manager. | ||
+ | |||
+ | The new generation package manager [https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&manpath=freebsd-release-ports '''pkg(8)'''] is a powerful tool to manipulate pre-compiled copies of all the commands for an application, as well as any configuration files and documentation. | ||
+ | |||
+ | While the two technologies ports and packages are similar, each have their own strengths. Select the technology that meets your requirements for installing a particular application. | ||
Package Benefits | Package Benefits | ||
Line 13: | Line 21: | ||
* Packages do not require any understanding of the process involved in compiling software on FreeBSD. | * Packages do not require any understanding of the process involved in compiling software on FreeBSD. | ||
+ | |||
+ | Sorce: [[File:Icon FreeBSD.png|50px|link=https://www.freebsd.org/doc/handbook/ports-overview.html]]'''Handbook: 4.2. Overview of Software Installation''' | ||
==Overview About PKG Commands== | ==Overview About PKG Commands== | ||
Line 146: | Line 156: | ||
A package can be manipulated with the [https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&manpath=freebsd-release-ports pkg(8)] commands, such as ''pkg install''. | A package can be manipulated with the [https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&manpath=freebsd-release-ports pkg(8)] commands, such as ''pkg install''. | ||
− | pkg only works with binary packages. By default, pkg uses the binary packages from the GhostBSD package mirrors. | + | pkg only works with binary packages. By default, pkg uses the binary packages from the GhostBSD/TrueOS package mirrors. |
+ | |||
+ | "GhostBSD now use TrueOS packages base from ports." See: [https://ghostbsd.org/19.09_release_announcement What changed since 19.04]. | ||
Each pkg command argument is documented in a command-specific manual page. To read the manual page for pkg install, for example, run either of these commands: | Each pkg command argument is documented in a command-specific manual page. To read the manual page for pkg install, for example, run either of these commands: | ||
Line 173: | Line 185: | ||
===Upgrading Installed Packages=== | ===Upgrading Installed Packages=== | ||
− | Update the local package | + | Update the local catalogues of the enabled package repositories |
<code>[https://www.freebsd.org/cgi/man.cgi?query=pkg-update&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports # pkg update]</code> | <code>[https://www.freebsd.org/cgi/man.cgi?query=pkg-update&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports # pkg update]</code> | ||
Line 182: | Line 194: | ||
This command will compare the installed versions with those available in the repository catalogue and upgrade them from the repository. | This command will compare the installed versions with those available in the repository catalogue and upgrade them from the repository. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===Not Updating A Package=== | ===Not Updating A Package=== | ||
Line 228: | Line 234: | ||
The pkg mirrors are located in: | The pkg mirrors are located in: | ||
− | * in | + | * in France: <code>http://pkg.fr.ghostbsd.org/stable/FreeBSD:12:amd64/</code> |
− | * in | + | * in Canada: <code>http://pkg.ghostbsd.org/stable/FreeBSD:12:amd64/</code> |
− | * in | + | * in US: <code>http://pkg.us.ghostbsd.org/stable/FreeBSD:12:amd64/</code> |
− | + | For upgrading your system chose the nearest mirror to your location. | |
− | + | ||
− | + | To change the mirror go to the file <code>/usr/local/etc/pkg/repos/GhostBSD.conf</code> and change the URL. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
== For more Information == | == For more Information == |