http://wiki.ghostbsd.org/index.php?title=Using_pkgsrc_Package_Management&feed=atom&action=historyUsing pkgsrc Package Management - Revision history2024-03-28T14:10:16ZRevision history for this page on the wikiMediaWiki 1.26.3http://wiki.ghostbsd.org/index.php?title=Using_pkgsrc_Package_Management&diff=2251&oldid=prevSlughorn at 18:39, 15 December 20192019-12-15T18:39:33Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 18:39, 15 December 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{verify}}</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><noinclude>{{NavHeader|back=Using the Ports Collection|forward=How to resolve the "fatal server error: no screen found"}}</noinclude></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div><noinclude>{{NavHeader|back=Using the Ports Collection|forward=How to resolve the "fatal server error: no screen found"}}</noinclude></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>Slughornhttp://wiki.ghostbsd.org/index.php?title=Using_pkgsrc_Package_Management&diff=2250&oldid=prevSlughorn: /* Miscellaneous */2019-12-15T18:38:00Z<p><span dir="auto"><span class="autocomment">Miscellaneous</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 18:38, 15 December 2019</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l74" >Line 74:</td>
<td colspan="2" class="diff-lineno">Line 74:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Handbook]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Handbook]]</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:<del class="diffchange diffchange-inline">Installing Applications</del>]]</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:<ins class="diffchange diffchange-inline">Application Management</ins>]]</div></td></tr>
</table>Slughornhttp://wiki.ghostbsd.org/index.php?title=Using_pkgsrc_Package_Management&diff=373&oldid=prevEricBSD: 1 revision imported2016-10-08T23:26:53Z<p>1 revision imported</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 23:26, 8 October 2016</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>EricBSDhttp://wiki.ghostbsd.org/index.php?title=Using_pkgsrc_Package_Management&diff=372&oldid=prevAdmin at 23:44, 18 August 20142014-08-18T23:44:11Z<p></p>
<p><b>New page</b></p><div><noinclude>{{NavHeader|back=Using the Ports Collection|forward=How to resolve the "fatal server error: no screen found"}}</noinclude><br />
<br />
=== Installing a Package ===<br />
<br />
N.B. This section is being left for users of pre GhostBSD 4.0<br />
This will be different from GhostBSD4.0/FreeBSD 10.0 onwards, as it now uses [https://www.freebsd.org/doc/handbook/pkgng-intro.html pkgng]. More info here [https://wiki.freebsd.org/pkgng#the_pkg_command The pkg command].<br />
<br />
<br />
Use [http://www.freebsd.org/cgi/man.cgi?query=pkg_add pkg_add(1)] to install binary package from a local file or from a server on the network.<br />
<br />
If you do not have a source of local packages, such as a FreeBSD CD-ROM set, include ''-r'' with pkg_add(1). This automatically determines the correct object format and release, and then fetches and installs the package from an FTP site without any further user intervention.<br />
<br />
: <code>pkg_add -r lsof</code><br />
<br />
To specify an alternative FreeBSD FTP mirror, specify the mirror in the PACKAGESITE environment variable. pkg_add(1) uses fetch(3) to download files, which uses various environment variables, including FTP_PASSIVE_MODE, FTP_PROXY, and FTP_PASSWORD. You may need to set one or more of these if you are behind a firewall, or need to use an FTP/HTTP proxy. See fetch(3) for the complete list. Note that in the example above lsof is used instead of lsof-4.56.4. When the remote fetching feature is used, the version number of the package must be removed.<br />
<br />
Package files are distributed in .tgz and .tbz formats. Packages are available from ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/packages/, or the /packages directory of the FreeBSD DVD distribution. The layout of the packages is similar to that of the /usr/ports tree. Each category has its own directory, and every package can be found within the All directory.<br />
<br />
=== Managing Packages ===<br />
<br />
pkg_info(1) can be used to list and describe installed packages:<br />
: <code>pkg_info</code><br />
<pre><br />
colordiff-1.0.13 A tool to colorize diff output<br />
docbook-1.2 Meta-port for the different versions of the DocBook DTD<br />
...<br />
</pre><br />
<br />
pkg_version(1) summarizes the versions of all installed packages and compares the package version to the current version found in the ports tree:<br />
: <code>pkg_version</code><br />
<pre><br />
colordiff =<br />
docbook =<br />
...<br />
</pre><br />
<br />
The symbols in the second column indicate the relative age of the installed version and the version available in the local ports tree.<br />
{| class="wikitable"<br />
! Symbol<br />
! Meaning<br />
|-<br />
| =<br />
| The version of the installed package matches the one found in the local ports tree.<br />
|-<br />
| <<br />
| The installed version is older than the one available in the local ports tree.<br />
|-<br />
| ><br />
| The installed version is newer than the one found in the local ports tree, meaning that the local ports tree is probably out of date.<br />
|-<br />
| ?<br />
| The installed package cannot be found in the ports index. This can happen when an installed port is removed from the Ports Collection or is renamed.<br />
|-<br />
| <nowiki>*</nowiki><br />
| There are multiple versions of the package.<br />
|-<br />
| !<br />
| The installed package exists in the index but for some reason, pkg_version was unable to compare the version number of the installed package with the corresponding entry in the index.<br />
|}<br />
<br />
=== Deleting a Package ===<br />
<br />
To remove a previously installed software package, use pkg_delete(1):<br />
: <code>pkg_delete xchat-1.7.1</code><br />
<br />
Note that pkg_delete(1) requires the full package name and number; the above command would not work if xchat was given instead of xchat-1.7.1. Use pkg_version(1) to find the version of the installed package, or use a wildcard:<br />
: <code>pkg_delete xchat\*</code><br />
<br />
In this case, all packages whose names start with xchat will be deleted.<br />
<br />
=== Miscellaneous ===<br />
<br />
All package information, including the file list and descriptions of each installed package is stored within the '''''/var/db/pkg''''' directory.<br />
<br />
[[Category:Handbook]]<br />
[[Category:Installing Applications]]</div>Admin