- 论坛徽章:
- 0
|
相较于只会发截图的我而言 楼主真的已经做的很好了 我很惭愧
Convert a FreeBSD System to PC-BSD® - PC-BSD Wiki
http://wiki.pcbsd.org/index.php/ ... AE_pkgng_Repository
Switching to the PC-BSD® pkgng Repository
If you are running PC-BSD® 9.1-RELEASE or FreeBSD 9.1, you will need to first install the port or package[1].
After installing pkg, run the command pkg2ng to import your existing package database from the old format to the new pkgng format.
Next, configure access to the PC-BSD® repository. Start by creating the file /usr/local/etc/pkg.conf with the following contents:
packagesite: ftp://ftp.pcbsd.org/pub/mirror/packages/9.1-RELEASE/amd64
PUBKEY: /usr/local/etc/pkg-pubkey.cert PKG_CACHEDIR: /usr/local/tmp
Note that the packagesite: variable should be changed to a PC-BSD® mirror close to your geographic location. Additionally, 9.1-RELEASE and amd64 can be changed to indicate the release version and architecture you want to use. Click here to get a list of the available mirrors and package sets.
Next, download the repository's public key cert file, and copy it to /usr/local/etc/pkg-pubkey.cert.
The system is now configured and you now update your packages to the latest versions from the pkgng repository using the following command:
pkg upgrade -fy
Depending upon what is already installed, you may have to resolve some error messages in order to successfully upgrade all packages.
To install and delete packages use the pkg command. This command differs in usage from the original package format version. You can learn more about how to use this command in Section 5.5.3 of the FreeBSD Handbook.
|
|