Easy Way to Upgrade FreeBSD's Ports Easy Way để nâng cấp của FreeBSD Ports

Before you can update and upgrade the FreeBSD's ports, the Ports Collection needs to be updated. Trước khi bạn có thể cập nhật và nâng cấp các cảng của FreeBSD, các Bộ sưu tập Ports cần phải được cập nhật. Follow step Làm theo bước here ở đây to update the Ports Collection. để cập nhật các Bộ sưu tập Ports.

Once you updated your Ports Collection, before attempting a port upgrade, you should check the /usr/ports/UPDATING file. Một khi bạn cập nhật Ports của bạn Bộ sưu tập, trước khi thử một nâng cấp cảng, bạn nên kiểm tra xem / usr / cổng / CẬP NHẬT tập tin. This file describes various issues and additional steps users may encounter and need to perform when updating a port. Tập tin này mô tả các vấn đề khác nhau và các bước bổ sung người dùng có thể gặp phải và cần phải thực hiện khi cập nhật một cổng.

Keeping the ports up to date can be a tedious job. Giữ cổng đến nay có thể là một công việc tẻ nhạt. 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. Chỉ cần ví dụ, để nâng cấp một cổng bạn cần phải đi tới thư mục bến cảng, xây dựng cảng, deinstall cảng cũ, cài đặt các cảng mới, và sau đó dọn sạch sau khi xây dựng. If there are numerous ports that need to be upgrade, it will be very troublesome. Nếu có nhiều cảng cần được nâng cấp, nó sẽ rất phiền hà. 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. Đây là một vấn đề lớn cho quản trị viên hệ thống để đối phó với, và FreeBSD có tiện ích đó làm điều này tự động, và đó là sysutils / portupgrade tiện ích.

To install sysutils/portupgrade utility, use the command just as to install any other port: make install clean. Để cài đặt sysutils / tiện ích portupgrade, sử dụng lệnh cũng giống như cài đặt bất cứ cổng khác: thực hiện cài đặt sạch.

Create a database with the following command: pkgdb -F Tạo một cơ sở dữ liệu với lệnh sau đây: pkgdb-F

The command will read the list of installed ports and create a database file in the /var/db/pkg directory. Lệnh sẽ đọc danh sách các cổng được cài đặt và tạo một tập tin cơ sở dữ liệu trong / var / db / pkg thư mục.

Run portupgrade -a to start to update the ports. Khởi portupgrade-a để bắt đầu để cập nhật các cảng.

The portupgrade will read the database file created by pkgdb -F and the ports INDEX file. Các portupgrade sẽ đọc cơ sở dữ liệu tập tin được tạo bởi pkgdb-F và các cổng INDEX tập tin. Finally, portupgrade will begin to download, build, backup, install, and clean the ports which have been updated. Cuối cùng, portupgrade sẽ bắt đầu tải về, xây dựng, sao lưu, cài đặt, và làm sạch các cảng đã được cập nhật.

Portupgrade utility has a lot of options for different uses, the most important ones listed below. Portupgrade tiện ích đã có rất nhiều lựa chọn để sử dụng khác nhau, những cái quan trọng nhất được liệt kê dưới đây.

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. Nếu bạn muốn nâng cấp chỉ có một ứng dụng nhất định, không phải là cơ sở dữ liệu hoàn chỉnh, pkgname portupgrade sử dụng, bao gồm các cờ-r nếu portupgrade nên hành động trên tất cả các gói phụ thuộc vào gói cho là tốt, và-R để hoạt động trên tất cả các gói theo yêu cầu của việc cho các gói.

To use packages instead of ports for installation, provide -P. Để sử dụng gói thay vì cổng để cài đặt, cung cấp-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. Với portupgrade tùy chọn tìm kiếm những thư mục địa phương được liệt kê trong PKG_PATH, hoặc fetches gói từ trang web từ xa nếu nó không được tìm thấy tại địa phương. If packages can not be found locally or fetched remotely, portupgrade will use ports. Nếu gói không thể được tìm thấy tại địa phương hoặc lấy từ xa, portupgrade sẽ sử dụng cảng. To avoid using ports, specify -PP. Để tránh sử dụng các cổng, xác định-PP.

To just fetch distfiles (or packages, if -P is specified) without building or installing anything, use -F. Để chỉ cần lấy distfiles (hoặc gói, nếu-P được chỉ định) mà không xây dựng hoặc cài đặt bất cứ điều gì, hãy sử dụng-F.

Note: It is important to regularly update the package database using pkgdb -F to fix inconsistencies, especially when portupgrade asks you to. Lưu ý: Điều quan trọng là thường xuyên cập nhật cơ sở dữ liệu bằng cách sử dụng gói pkgdb-F để khắc phục mâu thuẫn, đặc biệt là khi portupgrade yêu cầu bạn. Do not abort portupgrade while it is updating the package database, this will leave you an inconsistent database. Do portupgrade không ngừng trong khi nó được cập nhật cơ sở dữ liệu gói, điều này sẽ để lại cho bạn một cơ sở dữ liệu không phù hợp.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Quan trọng: Sửa là máy dịch và cung cấp "như là" không có bảo hành. Machine translation may be difficult to understand. Máy dịch thuật có thể khó hiểu. Please refer to Vui lòng tham khảo original English article bản gốc tiếng Anh bài viết whenever possible. bất cứ khi nào có thể.


Leave a Reply Để lại một trả lời

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Bạn có thể sử dụng các thẻ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q <strike> <strong>

Subscribe to comments feature has been disabled. Thuê bao với ý kiến đều đã bị vô hiệu hoá. To receive notification of latest comments posted, subscribe to Để nhận được thông báo mới nhất đăng ý kiến, đăng ký với My Digital Life Comments RSS feed My Digital Life kiến RSS feed or hoặc register to receive đăng ký để nhận được new comments in daily email digest. Các ý kiến mới trong email tiêu hàng ngày.
Custom Search

New Articles Bài viết mới

Incoming Search Terms for the Article Tìm đến các Điều khoản Điều

freebsd ports upgrade nâng cấp cảng freebsd - -- upgrade ports nâng cấp cảng - -- ports upgrade nâng cấp cảng - -- upgrade ports freebsd nâng cấp cảng freebsd - -- freebsd port upgrade freebsd nâng cấp cảng - -- freebsd upgrade ports freebsd nâng cấp cảng - -- freebsd pkg_path freebsd pkg_path - -- freebsd pkgdb freebsd pkgdb - -- freebsd update packages freebsd cập nhật các gói - -- PKG_PATH freebsd PKG_PATH freebsd - -- upgrade port freebsd nâng cấp cảng freebsd - -- freebsd upgrade package freebsd nâng cấp gói - -- freebsd upgrade port freebsd nâng cấp cảng - -- freebsd pkg update freebsd pkg cập nhật - -- freebsd update package freebsd cập nhật gói - -- upgrade freebsd ports nâng cấp cảng freebsd - -- freebsd upgrade packages freebsd nâng cấp gói - -- upgrade port nâng cấp cảng - -- freebsd upgrading ports freebsd nâng cấp cảng - -- update freebsd packages cập nhật các gói freebsd - -- update freebsd ports cập nhật các cảng freebsd - -- freeBSD Pkg upgrade FreeBSD Pkg nâng cấp - -- how to upgrade ports làm thế nào để nâng cấp cảng - -- portupgrade freebsd portupgrade freebsd - -- freebsd clean ports freebsd sạch cảng - -- freebsd upgrade a port freebsd nâng cấp một cổng - -- how to upgrade ports freebsd làm thế nào để nâng cấp cảng freebsd - -- all tất cả - -- portsupgrade portsupgrade - -- port upgrade freebsd nâng cấp cảng freebsd - -- freebsd package upgrade freebsd gói nâng cấp - -- port upgrade nâng cấp cảng - -- pkg update freebsd pkg cập nhật freebsd - -- freebsd package update freebsd gói cập nhật - -- upgrade packages freebsd nâng cấp gói freebsd - -- how to upgrade port làm thế nào để nâng cấp cảng - -- ports upgrade freebsd nâng cấp cảng freebsd - -- how to upgrade freebsd ports làm thế nào để nâng cấp cảng freebsd - -- upgrading ports nâng cấp cảng - -- how to upgrade a port làm thế nào để nâng cấp một cổng - -- upgrade freebsd package nâng cấp gói freebsd - -- upgrading ports collection nâng cấp cảng thu - -- freebsd portupgrade freebsd portupgrade - -- freebsd pkg path freebsd pkg đường - -- upgrade ports in freebsd nâng cấp cảng trong freebsd - -- freebsd pkg_add pkg_path freebsd pkg_add pkg_path - -- freebsd upgrading packages freebsd nâng cấp gói - -- update freebsd package cập nhật các gói freebsd - -- update freebsd ports proxy Cập nhật freebsd cổng proxy - -- freebsd pkg_add path freebsd pkg_add đường - --