Easy Way to Upgrade FreeBSD's Ports Easy Way to Upgrade FreeBSD's Ports
Before you can update and upgrade the FreeBSD's ports, the Ports Collection needs to be updated. Sebelum Anda dapat memperbarui dan meningkatkan FreeBSD pelabuhan-pelabuhan, Pelabuhan Koleksi yang perlu di-update. Follow step Ikuti langkah here di sini to update the Ports Collection. untuk memperbarui Ports Collection.
Once you updated your Ports Collection, before attempting a port upgrade, you should check the /usr/ports/UPDATING file. Setelah Anda memperbarui Ports Collection, sebelum mencoba sebuah port upgrade, Anda harus memeriksa / usr / ports / UPDATING file. This file describes various issues and additional steps users may encounter and need to perform when updating a port. File ini menjelaskan berbagai isu dan langkah-langkah tambahan pengguna mungkin perjumpaan dan perlu melakukan ketika memperbarui port.
Keeping the ports up to date can be a tedious job. Menjaga port up to date dapat menjadi pekerjaan yang membosankan. Just for example, to upgrade a port you need to go to the ports directory, build the port, deinstall the old port, install the new port, and then clean up after the build. Hanya misalnya, untuk meng-upgrade sebuah port Anda harus pergi ke direktori port, membangun pelabuhan, deinstall pelabuhan tua, instal pelabuhan baru, dan kemudian membersihkan setelah membangun. If there are numerous ports that need to be upgrade, it will be very troublesome. Jika ada banyak port yang harus meng-upgrade, maka akan sangat merepotkan. This was a large problem for system administrators to deal with, and FreeBSD have utilities which do this automatically, and that's sysutils/portupgrade utility. Ini adalah masalah besar bagi administrator sistem untuk menangani, dan FreeBSD memiliki utilitas yang melakukan ini secara otomatis, dan itu sysutils / portupgrade utilitas.
To install sysutils/portupgrade utility, use the command just as to install any other port: make install clean. Untuk menginstal sysutils / portupgrade utilitas, gunakan perintah seperti menginstal port lain: make install bersih.
Create a database with the following command: pkgdb -F Buat database dengan perintah berikut: pkgdb-F
The command will read the list of installed ports and create a database file in the /var/db/pkg directory. Perintah akan membaca daftar ports terinstal dan membuat file database di / var / db / pkg direktori.
Run portupgrade -a to start to update the ports. Jalankan portupgrade-a untuk memulai untuk memperbarui port.
The portupgrade will read the database file created by pkgdb -F and the ports INDEX file. The portupgrade akan membaca file database yang dibuat oleh pkgdb-F dan file INDEX pelabuhan. Finally, portupgrade will begin to download, build, backup, install, and clean the ports which have been updated. Akhirnya, portupgrade akan mulai men-download, membangun, backup, install, dan membersihkan pelabuhan-pelabuhan yang telah diperbarui.
Portupgrade utility has a lot of options for different uses, the most important ones listed below. Portupgrade utilitas memiliki banyak pilihan untuk kegunaan yang berbeda, yang paling penting yang tercantum di bawah ini.
If you want to upgrade only a certain application, not the complete database, use portupgrade pkgname , include the flags -r if portupgrade should act on all those packages depending on the given package as well, and -R to act on all packages required by the given packages. Jika Anda hanya ingin meng-upgrade sebuah aplikasi tertentu, bukan database yang lengkap, gunakan portupgrade pkgname, termasuk bendera-r jika portupgrade harus bertindak pada semua paket yang tergantung pada paket yang diberikan juga, dan-R untuk bertindak pada semua paket yang dibutuhkan oleh paket yang diberikan.
To use packages instead of ports for installation, provide -P. Untuk menggunakan paket bukannya port untuk instalasi, memberikan-P. With this option portupgrade searches the local directories listed in PKG_PATH, or fetches packages from remote site if it is not found locally. Dengan opsi ini portupgrade pencarian direktori lokal terdaftar dalam PKG_PATH, atau mengambil paket dari situs remote jika tidak ditemukan secara lokal. If packages can not be found locally or fetched remotely, portupgrade will use ports. Jika paket tidak dapat ditemukan secara lokal atau diambil dari jarak jauh, portupgrade akan menggunakan port. To avoid using ports, specify -PP. Untuk menghindari menggunakan port, tentukan-PP.
To just fetch distfiles (or packages, if -P is specified) without building or installing anything, use -F. Hanya fetch distfiles (atau paket, kalau-P adalah ditentukan) tanpa membangun atau menginstal apapun, gunakan-F.
Note: It is important to regularly update the package database using pkgdb -F to fix inconsistencies, especially when portupgrade asks you to. Catatan: Penting untuk terus memperbaharui database menggunakan paket pkgdb-F untuk memperbaiki inkonsistensi, terutama ketika meminta Anda untuk portupgrade. Do not abort portupgrade while it is updating the package database, this will leave you an inconsistent database. Jangan batalkan portupgrade ketika sedang meng-update basis data paket, hal ini akan meninggalkan database Anda yang tidak konsisten.
IMPORTANT : The page is machine translated and provided "as is" without warranty. PENTING: Halaman ini adalah mesin diterjemahkan dan diberikan "sebagaimana adanya" tanpa jaminan. Machine translation may be difficult to understand. Terjemahan mesin mungkin sulit untuk mengerti. Please refer to Silakan merujuk ke original English article artikel asli bahasa Inggris whenever possible. bila memungkinkan.
Related Articles Artikel Terkait
- Using Portsnap to Update FreeBSD Ports Tree Collection Menggunakan Portsnap Update FreeBSD Ports Tree Koleksi
- Update FreeBSD Ports Collection to Latest Version with Security Update with Portmanager and Portaudit Update FreeBSD Ports Collection untuk Versi terbaru dengan Security Update dengan Portmanager dan Portaudit
- Update FreeBSD Ports Collection Up to Date and Latest Update FreeBSD Ports Collection Up to Date dan terbaru
- Portdowngrade – Downgrade to Previous Version of FreeBSD's Ports Portdowngrade - Downgrade ke Versi Sebelumnya FreeBSD's Ports
- Searching for Application in FreeBSD's Ports Collection Pencarian untuk Aplikasi di FreeBSD's Ports Collection
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Instalasi Web Server di FreeBSD 6.0 dengan Apache 2.2, MySQL 5.0 dan PHP 5 - Bagian 3
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Instalasi Web Server di FreeBSD 6.0 dengan Apache 2.2, MySQL 5.0 dan PHP 5 - Bagian 5
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD Instalasi dan Konfigurasi Server DHCP (dhcpd) di FreeBSD
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Instalasi Web Server di FreeBSD 6.0 dengan Apache 2.2, MySQL 5.0 dan PHP 5 - Bagian 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 Instalasi Web Server di FreeBSD 6.0 dengan Apache 2.2, MySQL 5.0 dan PHP 5 - Bagian 1









































