Editing Pkg

Jump to: navigation, search

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 ==
  
'''pkg''' is the FreeBSD package management tools, offering many features that make dealing with binary packages faster and easier.
+
'''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]]
See [https://www.freebsd.org/cgi/man.cgi?query=pkg&sektion=8&manpath=freebsd-release-ports '''pkg(8)''']
+
  
 +
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 repository index
+
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.
 
If  a kernel has to be upgraded, you have to do a forced upgrade. It is needed that all packages have to be reinstalled, so that all the package are compiled with the right kernel.
 
 
<code>[https://www.freebsd.org/cgi/man.cgi?query=pkg-update&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports # pkg update -f]</code>
 
 
<code>[https://www.freebsd.org/cgi/man.cgi?query=pkg-upgrade&sektion=8&apropos=0&manpath=FreeBSD+12.1-RELEASE+and+Ports # pkg upgrade -fy]</code>
 
  
 
===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 the US: http://pkg.us.ghostbsd.org/stable/FreeBSD:12:amd64/  
+
* in France: <code>http://pkg.fr.ghostbsd.org/stable/FreeBSD:12:amd64/</code>
* in France: http://pkg.fr.ghostbsd.org/stable/FreeBSD:12:amd64/  
+
* in Canada: <code>http://pkg.ghostbsd.org/stable/FreeBSD:12:amd64/</code>
* in Cynyda: http://pkg.ghostbsd.org/stable/FreeBSD:12:amd64/
+
* in US:   <code>http://pkg.us.ghostbsd.org/stable/FreeBSD:12:amd64/</code>
  
To change the mirror go to the file <code>/etc/pkg/GhostBSD.conf</code> and change the URL. <br/>
+
For upgrading your system chose the nearest mirror to your location.
There in it is described as:
+
  
* in France: <code> url: "http://pkg.fr.ghostbsd.org/stable/${ABI}/latest",</code>
+
To change the mirror go to the file <code>/usr/local/etc/pkg/repos/GhostBSD.conf</code> and change the URL.
* in Canada: <code> url: "http://pkg.ca.ghostbsd.org/stable/${ABI}/latest",</code>
+
* in US:  <code> url: "http://pkg.us.ghostbsd.org/stable/${ABI}/latest",</code>
+
 
+
For upgrading your system chose the nearest mirror to your location.
+
  
 
== For more Information ==
 
== For more Information ==

Please note that all contributions to GhostBSD Wiki are considered to be released under the Creative Commons Attribution (see GhostBSD Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)

Template used on this page: