<commit_before>pkg - a binary package manager for FreeBSD
============================================

Table of Contents:
------------------

* [libpkg](#libpkg)
* [pkg package format](#pkgfmt)
* [Local Database](#localdb)
* [Installing packages](#pkginst)
* [Upgrading packages](#pkgupg)
* [Deleting packages](#pkgdel)
* [Installing pkg](#installpkg)
* [pkg bootstrap](#pkgbootstrap)
* [pkg in Ports](#pkgports)
* [Building pkg using sources from Git](#pkggit)
* [Converting an old-style pkg database](#pkg2ng)
* [A quick usage introduction to pkg](#usageintro)
* [Getting help on the commands usage](#pkghelp)
* [Querying the local package database](#pkginfo)
* [Installing packages](#pkginstalling)
* [Adding pkg tarballs directly](#pkgadd)
* [Working with a remote package repository](#pkgrepos)
* [Working with multiple remote package repositories](#multirepos)
* [Updating remote repositories](#pkgupdate)
* [Searching in remote package repositories](#pkgsearch)
* [Installing from remote repositories](#pkginstall)
* [Backing up your package database](#pkgbackup)
* [Creating a package repository](#pkgcreate)
* [Additional resources](#resources)

[<img src="https://travis-ci.org/freebsd/pkg.svg" />](https://travis-ci.org/freebsd/pkg)

<a name="libpkg"></a>
### libpkg

pkg is built on top of libpkg, a new library to interface with package
registration backends.
It abstracts package management details such as registration, remote
repositories, package creation, updating, etc.

<a name="pkgfmt"></a>
### pkg package format

pkg package format is a tar archive which can be raw, or use the following
compression: gz, bzip2 and xz, defaulting in xz format.

The tar itself is composed in two types of elements:

* the special files at the beginning of the archive, starting with a "+"
* the data.

#### The metadata

pkg uses several files for metadata:

* +COMPACT\_MANIFEST
* +MANIFEST
* +MTREE\_DIRS (optional)<commit_msg>Add link to FreeBSD build status<commit_after>pkg - a binary package manager for FreeBSD
============================================

Table of Contents:
------------------

* [libpkg](#libpkg)
* [pkg package format](#pkgfmt)
* [Local Database](#localdb)
* [Installing packages](#pkginst)
* [Upgrading packages](#pkgupg)
* [Deleting packages](#pkgdel)
* [Installing pkg](#installpkg)
* [pkg bootstrap](#pkgbootstrap)
* [pkg in Ports](#pkgports)
* [Building pkg using sources from Git](#pkggit)
* [Converting an old-style pkg database](#pkg2ng)
* [A quick usage introduction to pkg](#usageintro)
* [Getting help on the commands usage](#pkghelp)
* [Querying the local package database](#pkginfo)
* [Installing packages](#pkginstalling)
* [Adding pkg tarballs directly](#pkgadd)
* [Working with a remote package repository](#pkgrepos)
* [Working with multiple remote package repositories](#multirepos)
* [Updating remote repositories](#pkgupdate)
* [Searching in remote package repositories](#pkgsearch)
* [Installing from remote repositories](#pkginstall)
* [Backing up your package database](#pkgbackup)
* [Creating a package repository](#pkgcreate)
* [Additional resources](#resources)

[<img src="https://travis-ci.org/freebsd/pkg.svg" />](https://travis-ci.org/freebsd/pkg)
[![Build Status](http://jenkins.mouf.net/view/auto/job/pkg/badge/icon)](http://jenkins.mouf.net/view/auto/job/pkg/)
<a name="libpkg"></a>
### libpkg

pkg is built on top of libpkg, a new library to interface with package
registration backends.
It abstracts package management details such as registration, remote
repositories, package creation, updating, etc.

<a name="pkgfmt"></a>
### pkg package format

pkg package format is a tar archive which can be raw, or use the following
compression: gz, bzip2 and xz, defaulting in xz format.

The tar itself is composed in two types of elements:

* the special files at the beginning of the archive, starting with a "+"
* the data.

#### The metadata

pkg uses several files for metadata:

* +COMPACT\_MANIFEST
* +MANIFEST
* +MTREE\_DIRS (optional)
{'fraction_non_alphanumeric': 0.15426859710434349, 'fraction_numerical': 0.000998502246630055, 'mean_word_length': 5.656146179401993, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4832067', 'n_tokens_mistral': 1247, 'n_tokens_neox': 1137, 'n_words': 404}