Usr/bin/env: php: quyền bị từ chối
port là tiện ích chính được sử dụng để tương tác với MacPorts. Nó được sử dụng để cập nhật các Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 và cơ sở hạ tầng MacPorts, đồng thời cài đặt và quản lý các cổng. Lưu ý rằng không phải tất cả các hành động được liệt kê ở đây; Show Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.12 hiển thị một số thông tin ngắn gọn về hành động được chỉ định hoặc nếu không có hành động nào được chỉ định, hiển thị thông tin sử dụng cơ bản cho cổng nói chung
Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts. Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13 nên được sử dụng thường xuyên để cập nhật cây cổng cục bộ với kho lưu trữ cổng MacPorts toàn cầu để bạn có sẵn các phiên bản gói phần mềm mới nhất. Nó cũng tự kiểm tra các bản phát hành mới của MacPorts và nâng cấp nó khi cần thiết
---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version Nếu Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13 phát hiện có phiên bản MacPorts mới hơn, nó sẽ tự động cập nhật bản sao cơ sở MacPorts đã cài đặt lên phiên bản mới nhất được phát hành. Trong trường hợp đó, bạn sẽ thấy thông báo này________số 8 Nếu quy trình Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13 không thành công, bạn sẽ thấy một thông báo như thế này Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.0 Như mọi khi, bạn có thể sử dụng cờ gỡ lỗi Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.16 để bật đầu ra dài dòng. Nếu Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13 của bạn không thành công, hãy chạy lại nó với đầu ra gỡ lỗi được bật để xem tất cả đầu ra do hệ thống xây dựng tạo ra Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.3 Đầu ra có thể cho bạn biết tại sao quá trình xây dựng thất bại. Tìm kiếm những lần xuất hiện đầu tiên của “lỗi”. Nếu bạn không thể tự mình tìm ra điều gì sai, vui lòng hỏi trong danh sách gửi thư Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.18 và đính kèm kết quả được tạo bởi sudo port -d selfupdate Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13 chấp nhận một công tắc duy nhất Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.20 Chỉ cập nhật bản thân MacPorts, không cập nhật cây của Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11s Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.22 thực hiện một tập hợp con của Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13. Nó đồng bộ hóa cây cổng, cũng như Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13, nhưng nó không kiểm tra các bản nâng cấp MacPorts. Trên macOS, trừ khi có lý do đặc biệt để không làm như vậy, thay vào đó hãy chạy selfupdate Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.22 không chấp nhận bất kỳ công tắc nào Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.26 kiểm tra các sự cố phổ biến trong môi trường của người dùng và báo cáo tất cả các sự cố mà nó tìm thấy cho người dùng, cùng với các bản sửa lỗi có thể có cho sự cố đã nói Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.26 chấp nhận một công tắc duy nhất Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.28 Chỉ hiển thị các cảnh báo và lỗi, thay vì trạng thái của tất cả các lần chạy thử nghiệm Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.29 cố gắng lấy lại dung lượng bằng cách gỡ cài đặt các cổng không hoạt động và xóa các tệp không cần thiết đã được tải xuống trong quá trình cài đặt Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.29 chấp nhận công tắc để định cấu hình lời nhắc tự động. Nếu được thông qua, quá trình thu hồi sẽ không được chạy Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.31 Bật lời nhắc thường xuyên để chạy thu hồi cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.32 Vô hiệu hóa lời nhắc thường xuyên để chạy thu hồi cổng Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.33 liệt kê phiên bản hiện có của các cổng đã chỉ định hoặc nếu không có cổng nào được chỉ định, sẽ hiển thị danh sách tất cả các cổng có sẵn. Danh sách các cổng khả dụng rất dài, vì vậy hãy sử dụng tính năng tìm kiếm nếu bạn đang tìm kiếm một cổng cụ thể Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.0 Ghi chúdanh sách cổng luôn liệt kê phiên bản mới nhất có sẵn trong MacPorts, không nhất thiết phải là phiên bản bạn đã cài đặt. Vì lý do này, danh sách cổng được cài đặt có khả năng tạo ra kết quả không mong muốn. Trong hầu hết các trường hợp bạn sẽ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.33, sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.35 hoặc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.36 là lựa chọn tốt hơn để thay thế. Cả cổng được cài đặt và cổng echo được cài đặt sẽ tạo ra đầu ra mà bạn có thể mong đợi từ lệnh, danh sách cổng được cài đặt sẽ không (và, để làm cho vấn đề trở nên tồi tệ hơn, sẽ bị chậm) Bạn hầu như không cần danh sách cổng để làm việc với MacPorts. Khi tìm kiếm, tìm kiếm cổng là lựa chọn tốt hơn và khi cố gắng liệt kê các cổng, cổng được cài đặt và tiếng vang cổng sẽ hữu ích hơn nhiều Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.37 cho phép tìm cổng bằng cách khớp một phần tên hoặc mô tả. Các trường khác có thể được đối sánh và đối sánh theo những cách khác nhau bằng cách sử dụng các tùy chọn. tìm kiếm cổng là công cụ được lựa chọn nếu bạn đang tìm kiếm một phần mềm cụ thể trong MacPorts. Chúng tôi khuyên bạn nên đọc một số cờ của nó để cải thiện hiệu quả của bạn khi tìm kiếm các cổng. Chạy cổng trợ giúp tìm kiếm danh sách đầy đủ các công tắc có thể Giả sử bạn đang tìm kiếm PHP trong MacPorts. Bạn có thể bắt đầu với cổng tìm kiếm php và nhận thấy truy vấn của bạn tạo ra rất nhiều đầu ra. Trên thực tế, tại thời điểm viết bài này, tìm kiếm này tạo ra 661 kết quả phù hợp. Theo mặc định, tìm kiếm cổng tìm kiếm cả tên và mô tả của cổng. Trong khi chúng tôi đang tìm kiếm PHP, chúng tôi có thể giảm số lần truy cập bằng cách sử dụng cờ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.38. Hơn nữa, chúng tôi chỉ muốn các cổng có tên bắt đầu bằng “php”, vì vậy chúng tôi thêm cờ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.39 (thực ra, chúng tôi có thể bỏ nó đi vì nó là mặc định) và sửa cụm từ tìm kiếm thành Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.40 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.8 Hơn nữa, chúng tôi có thể kích hoạt đầu ra nhỏ gọn bằng cách sử dụng công tắc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.41. Điều này khiến chỉ một dòng được in cho mỗi trận đấu Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.0 Trong số lượng lớn các mô-đun PHP, bạn sẽ tìm thấy các cổng PHP chính, được đặt tên là php Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.42. Chọn một cái để cài đặt Nếu bạn biết regex và biết về định dạng của các phiên bản PHP, bạn có thể giảm thêm đầu ra của tìm kiếm cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.0 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.1 Chúng ta hãy xem một ví dụ khác ít phức tạp hơn. Giả sử bạn đang tìm kiếm Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.43, một hệ thống phổ biến để lưu trữ và vẽ biểu đồ dữ liệu chuỗi thời gian, phương pháp tìm kiếm đơn giản hoạt động tốt Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.2____03 Các công tắc có thể chuyển sang Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.37 và ý nghĩa của chúng là Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.45 Khớp chuỗi tìm kiếm theo cách phân biệt chữ hoa chữ thường Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.46 Khớp chính xác chuỗi tìm kiếm theo nghĩa đen Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.39 Coi chuỗi tìm kiếm đã cho là chuỗi tìm kiếm toàn cục (i. e. , mở rộng các ký tự đại diện Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.48, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.49 và Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.50). Đây là hành vi mặc định Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.51 Coi chuỗi tìm kiếm đã cho là biểu thức chính quy Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.52 Kiểm tra chuỗi tìm kiếm đối với Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.42. Có thể được chỉ định nhiều lần để kiểm tra nhiều trường. Mặc định là Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.54. Các giá trị có thể có của Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.42 là Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.56, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.57 Tìm kiếm các cổng trong một danh mục nhất định Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.58, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.59, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.60, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.61, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.62, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.63 Tìm kiếm các cổng phụ thuộc vào cổng được cung cấp dưới dạng chuỗi tìm kiếm. Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.58 là bí danh cho tất cả các tùy chọn Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.65 khác được kết hợp. Lưu ý rằng chỉ các phụ thuộc được chỉ định trong các biến thể mặc định mới được tìm thấy Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.66, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.67 Kiểm tra chuỗi tìm kiếm đối với các mô tả của cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.68 Kiểm tra chuỗi tìm kiếm đối với trường trang chủ của tất cả các cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.69, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.70 Tìm kiếm các cổng được duy trì bởi một người bảo trì cụ thể Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.38 Chỉ tìm tên cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.72 Kiểm tra chuỗi tìm kiếm dựa trên đường dẫn của thư mục chứa cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.73, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.74 Tìm kiếm tên biến thể Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.75 được sử dụng để lấy thông tin về một cổng. tên, phiên bản, mô tả, biến thể, trang chủ, phần phụ thuộc, giấy phép và người bảo trì Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.4 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.5 Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.76 liệt kê các phụ thuộc của một cổng. Phần phụ thuộc là các gói được một cổng yêu cầu trong thời gian chạy (các phần phụ thuộc thư viện và thời gian chạy) hoặc được yêu cầu để cài đặt nó (các phần phụ thuộc xây dựng, tìm nạp và trích xuất) Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.6 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.7 Lưu ý rằng danh sách phụ thuộc có thể phụ thuộc vào các biến thể bạn đã chọn. Ví dụ: chọn biến thể Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.77 của Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.78 sẽ thêm phụ thuộc vào Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.79 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.8 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.9 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.76 chấp nhận hai công tắc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.81 Không đọc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 để xác định phụ thuộc. Thay vào đó, hãy dựa vào thông tin được lưu trong bộ đệm trong chỉ mục cổng. Lưu ý rằng (mặc dù chỉ định chúng), tùy chọn này sẽ bỏ qua mọi ảnh hưởng của các biến thể. Tuy nhiên, nó nhanh hơn nhiều Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.83 Loại trừ các phụ thuộc chỉ được yêu cầu tại thời điểm xây dựng, tôi. e. , tìm nạp, trích xuất và xây dựng các phụ thuộc Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.84 cho phép bạn kiểm tra các biến thể của một cổng có sẵn trước khi bạn cài đặt nó. Các biến thể là một cách để tác giả cổng cung cấp các tùy chọn mà bạn có thể sử dụng để tùy chỉnh bản dựng của mình khi cài đặt. Xem Gọi Biến thể Cổng bên dưới để cài đặt các cổng có biến thể 0 1 Đầu ra này liệt kê tất cả các biến thể theo sau là mô tả của chúng. Nếu một biến thể phụ thuộc hoặc xung đột với các biến thể khác, một dòng chi tiết theo sau. Tên biến thể có tiền tố là Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.85 biểu thị rằng nó đã được bật (trên dòng lệnh), trong khi tiền tố Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.86 biểu thị rằng nó đã bị vô hiệu hóa. Khi được đặt trong ngoặc đơn, tiền tố Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.85 có nghĩa là biến thể được bật theo mặc định. Bất kỳ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.88 nào đều có nguồn gốc từ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11. Trong khi Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.90 có nguồn gốc từ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.91. Xem Phần 6. 2. 3, “biến thể. conf” để biết thêm thông tin về Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.91 Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.93 được sử dụng để cài đặt một cổng. Khi bạn đã xác định tên của cổng mình muốn (có thể sử dụng tính năng tìm kiếm cổng), bạn có thể cài đặt cổng đó bằng lệnh này. Xem Phần 3. 2. 1, “Gọi các biến thể” về cách chọn các biến thể khi cài đặt một cổng mới. Ví dụ, 2 cài đặt cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.78 mà không có Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.95, nhưng với biến thể Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.96 Nếu quá trình cài đặt cổng không thành công, bạn có thể bật đầu ra dài dòng hoặc gỡ lỗi bằng cách đặt cờ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.97 hoặc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.16 cho cổng 3 Tất cả thông tin gỡ lỗi cũng được lưu trong Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.99 cho cổng bạn đã cài đặt. Đường dẫn của nó sẽ được in tự động nếu cài đặt không thành công. Bạn có thể lấy đường dẫn thủ công bằng cổng logfile portname. Lưu ý rằng các tệp nhật ký sẽ tự động bị xóa khi cài đặt thành công Nếu quá trình cài đặt cổng không thành công, bạn phải luôn dọn dẹp và thử lại, tôi. e. , chạy 4 và thực hiện lại lệnh bạn đã chạy trước đó Bạn cũng có thể muốn thử bật chế độ theo dõi, chế độ này có thể ngăn xung đột gây ra bởi các tệp được cài đặt bởi các cổng khác hoặc ở các vị trí hệ thống phổ biến, chẳng hạn như 00. Để làm điều đó, hãy chạy lại cài đặt với cờ 01, tôi. e. , 5 Nếu cổng vẫn không cài đặt được sau khi bạn đã làm theo các bước này, vui lòng gửi một vé và đính kèm Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.99 của một nỗ lực sạch Ghi chúViệc cài đặt một cổng duy nhất bao gồm nhiều giai đoạn. Các giai đoạn này là tìm nạp, giải nén, vá lỗi, định cấu hình, xây dựng, hủy gốc, lưu trữ và cuối cùng là cài đặt. Bạn có thể chia quá trình cài đặt của cổng thành các bước nhỏ hơn để khắc phục sự cố bằng cách sử dụng tên của một trong các giai đoạn này làm hành động thay vì Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.93. Ví dụ 6 sẽ chạy cài đặt của Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.78 cho đến giai đoạn phá hủy. Xem Phần 5. 3, “Các giai đoạn của cổng” để biết danh sách đầy đủ các giai đoạn và mô tả chi tiết Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.93 lấy các công tắc sau 06 Theo mặc định, kiểm tra độ chính xác nhị phân có tên là 07 được chạy tự động sau mỗi lần cài đặt thành công. Chuyển cờ này, nếu bạn muốn tránh chạy bước này, ví dụ: nếu bạn muốn chạy nó một cách rõ ràng sau một số lần cài đặt bằng cách sử dụng sudo port rev-upgrade hoặc nếu bạn biết nó sẽ phát hiện ra sự cố nhưng muốn hoãn xử lý chúng 08 Theo mặc định, mỗi cổng bạn cài đặt bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.93 một cách rõ ràng (trái ngược với các cổng được cài đặt dưới dạng phụ thuộc của một cổng khác) được đánh dấu là “được yêu cầu”. Nếu bạn muốn MacPorts xử lý một cổng mà bạn đã cài đặt thủ công như thể nó được cài đặt tự động như một phần phụ thuộc (e. g. , nếu một phần phụ thuộc không thể xây dựng và bạn chỉ thử cài đặt lại phần phụ thuộc đó), hãy chuyển cờ này Hành động 10 được sử dụng để hiển thị bất kỳ ghi chú nào mà tác giả của cổng đã đưa vào. Chúng có thể chứa bất cứ thứ gì, nhưng theo quy ước là ngắn gọn và thường chứa các bước bắt đầu nhanh để định cấu hình và sử dụng cổng, những cạm bẫy cần lưu ý hoặc thông tin khác mà người dùng nên biết. Những ghi chú tương tự cũng được hiển thị sau khi cài đặt một cổng. Nhiều cổng không có ghi chú. Tài liệu mở rộng hơn thường có thể được tìm thấy tại trang chủ của một cổng hoặc trong các tệp đã cài đặt của nó 7 8 Hành động 11 xóa các tệp trung gian được tạo bởi MacPorts trong khi cài đặt một cổng. Việc dọn dẹp cổng thường là cần thiết khi quá trình xây dựng không thành công và phải là điều đầu tiên cần thử sau khi cài đặt không thành công 4 port clean cũng có thể được sử dụng để xóa các bản tải xuống bị hỏng sau giai đoạn 12 không thành công, bằng cách chỉ định cờ 13 ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version0 xóa tất cả các tệp đã được tải xuống cho cổng đã cho 11 chấp nhận các tùy chọn sau 15 Xóa lưu trữ tạm thời 13 Xóa các tệp đã tải xuống 17 Xóa tệp nhật ký 18 Xóa thư mục 19, tôi. e. , thư mục được MacPorts sử dụng để xây dựng phần mềm. Thao tác này sẽ xóa tất cả dấu vết của bản dựng đã thử và là thao tác mặc định 20 Tất cả những điều trên cộng lại Hành động 21 sẽ xóa một cổng đã cài đặt. Đây là một trong những hành động bạn sẽ sử dụng khá thường xuyên trong MacPorts ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version1 MacPorts sẽ từ chối gỡ cài đặt các cổng mà các cổng khác vẫn cần. Ví dụ ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version2 ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version3 Bạn có thể gỡ cài đặt đệ quy tất cả các cổng phụ thuộc vào cổng đã cho trước khi gỡ cài đặt chính cổng đó để giải quyết vấn đề này. Để làm điều đó, hãy sử dụng cờ 22 ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version4 Bạn cũng có thể ghi đè kiểm tra an toàn này bằng cờ 23 (lực lượng). Vì điều này rõ ràng sẽ phá vỡ những người phụ thuộc, bạn không nên làm điều này trừ khi bạn biết mình đang làm gì ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version5 Gỡ cài đặt một cổng sẽ không gỡ cài đặt các cổng đã được cài đặt tự động dưới dạng phần phụ thuộc của cổng đã gỡ cài đặt và nếu không thì không được sử dụng. Bạn có thể kích hoạt hành vi này bằng cách chuyển cờ 24. Các cổng đã được cài đặt thủ công (tôi. e. , được đánh dấu là “được yêu cầu”) hoặc có những người phụ thuộc khác sẽ không bị xóa. Bạn có thể gỡ cài đặt thủ công các cổng không cần thiết sau này bằng cách sử dụng cổng giả 25, e. g. , sử dụng lá gỡ cài đặt cổng Sudo 21 hỗ trợ các công tắc sau 22 Gỡ cài đặt đệ quy các cổng phụ thuộc vào cổng đã chỉ định trước khi gỡ cài đặt chính cổng đó. Xem thêm văn miêu tả ở trên 24 Đồng thời gỡ cài đặt các cổng đã được cài đặt tự động dưới dạng phần phụ thuộc của cổng đã xóa và không còn cần thiết nữa 29 Tránh chạy bất kỳ hook gỡ cài đặt nào, chẳng hạn như các lệnh cập nhật tệp bộ đệm Hành động 30 hiển thị danh sách tất cả các tệp đã được cài đặt bởi một cổng nhất định. Bạn chỉ có thể sử dụng 30 cho các cổng bạn đã cài đặt ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version6 ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version7 Các cách sử dụng phổ biến cho 30 là tìm vị trí của tệp thực thi của cổng sau khi cài đặt nó. Dòng sau đây thường hữu ích trong trường hợp này ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version8 Cờ 33 (im lặng) chặn dòng tiêu đề trong trường hợp này, nhưng không thực sự cần thiết 30 chấp nhận 35 In một đại diện có thể đọc được của con người về kích thước của tệp 36 Được sử dụng cùng với 35 để chọn đơn vị kích thước tệp. Các tham số hợp lệ cho 38 là 39 Liệt kê kích thước theo byte 40, 41 hoặc 42 Kích thước danh sách trong 42, i. e. , 1024 byte 44 hoặc 45 Kích thước danh sách trong 45, i. e. , 1024 * 1024 byte 47, hoặc 48 Kích thước danh sách trong 48, i. e. , 1024 * 1024 * 1024 byte 50, hoặc 51 Kích thước danh sách trong 51, i. e. , 1000 byte 53, hoặc 54 Kích thước danh sách trong 54, i. e. , 1000 * 1000 byte 56, hoặc 57 Kích thước danh sách trong 57, i. e. , 1000 * 1000 * 1000 byte Hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.35 hiển thị các phiên bản và biến thể đã cài đặt của các cổng đã chỉ định hoặc nếu không có cổng nào được chỉ định, tất cả các cổng đã cài đặt. Nó cũng hiển thị xem một cổng có đang “hoạt động” hay không. e. , cho dù các tệp thuộc cổng này hiện có trên đĩa hay không hoạt động, tôi. e. , được lưu trữ trong một tarball nén ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version9 ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7550 Sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.97 để hiển thị (các) kiến trúc nền tảng và CPU mà các cổng được xây dựng và bất kỳ biến thể nào đã bị phủ nhận rõ ràng ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7551 ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7552 Hành động 61 kiểm tra các cổng đã cài đặt của bạn so với cây cổng hiện tại để xem chúng đã được cập nhật kể từ khi bạn cài đặt chúng chưa. Lưu ý rằng bạn sẽ chỉ nhận được các phiên bản mới bằng cách cập nhật cây cổng của mình bằng cách sử dụng 62 (hoặc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.22) ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7553 ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7554 cổng đã lỗi thời liệt kê các cổng có sẵn bản nâng cấp và trên cột thứ hai, tại sao MacPorts cho rằng cổng cần nâng cấp. Trong hầu hết các trường hợp, đây sẽ là sự gia tăng số phiên bản. Nếu không, sẽ có thêm chi tiết Hành động 64 nâng cấp các cổng đã cài đặt và phần phụ thuộc của chúng lên phiên bản mới nhất có sẵn trong MacPorts. Trong hầu hết các trường hợp, bạn sẽ chạy ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7555 để cập nhật tất cả các cổng có sẵn bản nâng cấp. Tuy nhiên, bạn có thể nâng cấp có chọn lọc các cổng nếu muốn trì hoãn các nâng cấp khác cho đến sau này. Điều này không được khuyến nghị trừ khi bạn biết mình đang làm gì, vì bạn có thể gặp lỗi phần mềm đối với các cổng chưa được nâng cấp. Để nâng cấp các cổng riêng lẻ, hãy chỉ định (các) tên của (các) cổng cần nâng cấp ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7556 Lưu ý rằng MacPorts có thể quyết định nâng cấp các cổng phụ thuộc khác trước khi nâng cấp cổng mà bạn đã yêu cầu cập nhật. Đừng cố gắng ngăn chặn điều này, vì nó rất có thể dẫn đến các vấn đề sau này Ghi chú64 không gỡ cài đặt phiên bản cũ của cổng. Thay vào đó, nó hủy kích hoạt nó, tôi. e. , nó sẽ lưu trữ các tệp thuộc phiên bản cũ hơn trong một tarball. Điều này cho phép bạn quay lại phiên bản cũ hơn nếu xảy ra sự cố với phiên bản cập nhật. Để làm điều đó, hãy chạy ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7557 để xác định số phiên bản của phiên bản cũ mà bạn muốn kích hoạt lại và chạy ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7558 để quay lại phiên bản cũ Nếu bạn không muốn giữ các phiên bản cũ trong khi nâng cấp, bạn có thể vượt qua 66 khi nâng cấp ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7559 Tuy nhiên, thay vào đó, chúng tôi khuyên bạn nên giữ các phiên bản cũ hơn trong một thời gian và chạy Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.00 một lần vào một thời điểm nào đó 64 chấp nhận một số thiết bị chuyển mạch 68 Luôn coi các cổng đã cho là lỗi thời, bất kể chúng có thực sự là 69 Nếu các biến thể đã cài đặt không khớp với những biến thể được yêu cầu, hãy nâng cấp (và thay đổi các biến thể) ngay cả khi cổng chưa lỗi thời. Bạn có thể sử dụng điều này để chuyển đổi lựa chọn biến thể trên một cổng đã cài đặt, e. g. , sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.01 Lưu ý rằng 69 cũng sẽ thực thi lựa chọn biến thể của bạn trong tất cả các phần phụ thuộc. Nếu bạn biết điều này là không cần thiết, bạn có thể tránh xử lý các phần phụ thuộc bằng cách sử dụng cờ toàn cầu 71 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.02 72 Không tự động cài đặt cổng thay thế cho cổng bạn đã cài đặt nhưng đã được thay thế bằng một cổng khác Hành động 73 báo cáo những cổng nào phụ thuộc vào một cổng (đã cài đặt) nhất định, nếu có Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.03 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.04 Lưu ý rằng 73 không hoạt động đối với các cổng không được cài đặt trên hệ thống của bạn. Nếu bạn muốn tìm hiểu, cổng nào phụ thuộc vào cổng mà bạn chưa cài đặt, bạn có thể sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.05 Tuy nhiên, lệnh này sẽ không bao gồm các phụ thuộc chỉ có trong các biến thể không mặc định Hành động 75 kiểm tra xem ứng dụng tương ứng với một cổng nhất định đã được cập nhật tại trang tải xuống của nhà phát triển chưa. Hành động này chủ yếu hữu ích cho những người bảo trì cổng để xác định xem cổng của họ có cần được cập nhật hay không, nhưng những người khác cũng có thể muốn xem liệu một cổng có gói phiên bản mới nhất hiện có hay không. Xem Phần 5. 8, “Livecheck / Distcheck” để biết thêm thông tin về livecheck Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.06 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.07 Ghi chúNếu 75 không tìm thấy phiên bản cao hơn tại trang tải xuống của cổng, nó sẽ không in được gì. Tùy chọn Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.16 (gỡ lỗi) có thể được sử dụng để biết thông tin xử lý livecheck chi tiết Hành động lint kiểm tra xem Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 có tuân thủ các tiêu chuẩn MacPorts được chỉ định trong Portfile Development hay không. Bạn nên sử dụng điều này nếu bạn đã sửa đổi một Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 trước khi gửi lại các bản vá cho MacPorts Nếu một Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 hợp lệ tốt, thông báo sau sẽ được hiển thị Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.08 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.09 Nếu không, các cảnh báo và lỗi được liệt kê Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.30 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.31 81 có cờ sau 82 Cho phép kiểm tra bổ sung chủ yếu liên quan đến khoảng trắng và các phương pháp hay nhất Các biến thể là một cách để tác giả cổng cung cấp các tùy chọn cho một cổng có thể được chọn khi cài đặt. Thông thường, các biến thể là các tính năng tùy chọn có thể được bật nhưng không nhất thiết phải hữu ích cho tất cả người dùng và do đó không được bật theo mặc định. Để hiển thị các biến thể có sẵn cho một cổng, nếu có, hãy sử dụng lệnh này Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.32 Ví dụ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.33 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.34 Đầu ra này liệt kê tất cả các biến thể theo sau là mô tả của chúng. Nếu một biến thể phụ thuộc hoặc xung đột với các biến thể khác, một dòng có chi tiết về biến thể đó sẽ xuất hiện sau. Các dòng biến thể có Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.85 được bật và những dòng có Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.86 bị tắt. Bất kỳ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.88 nào đều có nguồn gốc từ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11. Trong khi Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.90 có nguồn gốc từ Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.91. Xem Phần 6. 2. 3, “biến thể. conf” để biết thêm thông tin về Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.91 Một biến thể chỉ có thể được chọn khi một cổng được cài đặt. Sau khi bạn đã xác định một cổng nhất định có những biến thể nào, nếu có, bạn có thể cài đặt một cổng bằng cách sử dụng một biến thể bằng cách chỉ định tên của nó trước dấu cộng trên dòng lệnh, chẳng hạn Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.35 Có thể chọn nhiều biến thể bằng cách liệt kê lần lượt từng biến thể được phân tách bằng dấu cách Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.36 Sử dụng dấu trừ để bỏ chọn biến thể được bật theo mặc định 2 Lưu ý rằng bạn sẽ không thấy bất kỳ xác nhận nào về việc lựa chọn biến thể thành công và MacPorts sẽ không cảnh báo bạn nếu bạn viết sai chính tả tên biến thể. Nếu quá trình cài đặt của bạn thành công nhưng tính năng đã chọn dường như vẫn bị thiếu, hãy kiểm tra lỗi chính tả có thể xảy ra. Bạn có thể sử dụng cổng đã cài đặt để xác minh rằng cổng đã được cài đặt với biến thể đã chọn Điều này xảy ra vì MacPorts cũng sẽ sử dụng các biến thể được chỉ định cho bất kỳ thành phần phụ thuộc nào. Ví dụ, Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.38 được chấp nhận mặc dù Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.78 không có biến thể 91. Tuy nhiên, nó phụ thuộc vào cổng 92 có biến thể 91 và sẽ được cài đặt với nó MacPorts sẽ ghi nhớ các biến thể đã được sử dụng khi cài đặt một cổng. Nếu sau này bạn nâng cấp một cổng, các biến thể giống nhau sẽ được sử dụng, trừ khi bạn chỉ định các biến thể khác nhau theo cách thủ công Một Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 có thể chỉ định một tập hợp các biến thể mặc định sẽ được sử dụng khi bạn không ghi đè nó theo cách thủ công. Không phải tất cả các cổng đều chỉ định các biến thể mặc định – nếu không có biến thể mặc định nào thì không có biến thể nào được chọn theo mặc định Nếu bạn muốn vô hiệu hóa một biến thể đã được bật theo mặc định, bởi Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.11 hoặc theo cấu hình của bạn trong Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.91, bạn có thể phủ nhận biến thể được đề cập bằng cách thêm dấu trừ vào trước tên biến thể trên dòng lệnh Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.39 Phần này liệt kê các thao tác phổ biến mà bạn có thể muốn thực hiện khi quản lý cài đặt MacPorts. Đây là những quy trình công việc bạn sẽ cần nhất khi sử dụng MacPorts. Chúng tôi khuyên bạn nên đọc ít nhất phần này như một hướng dẫn cơ bản về cách sử dụng MacPorts. Thông tin chi tiết về việc sử dụng có thể được tìm thấy trong Phần 3. 1, “The port Command” và trang quản lý 97 có sẵn bằng cách chạy man 1 port trong Terminal Lưu ý “sudo” đối với một số ví dụ tiếp theo, điều này cần thiết nếu bạn có cài đặt MacPorts mặc định Cây cổng cục bộ là tập hợp các tệp chứa thông tin về các gói có sẵn thông qua MacPorts và cách chúng có thể được cài đặt. Bạn nên thường xuyên cập nhật cây cổng của mình để có quyền truy cập vào các phiên bản cập nhật của phần mềm và sửa lỗi. Để làm điều đó, hãy sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.00 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.01 Để xem có gì mới sau khi chạy Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.13, bạn có thể sử dụng cổng lỗi thời để tạo danh sách các cổng có phiên bản mới hơn. Điều này có thể giúp ước tính thời gian cần thiết để nâng cấp cổng sudo đã lỗi thời, mặc dù điều này phụ thuộc vào các yếu tố khác như tính khả dụng của gói nhị phân và thời gian xây dựng cổng ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7553 ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7554 Để nâng cấp tất cả các cổng đã cài đặt và lỗi thời của bạn, hãy chạy ---> Updating MacPorts base sources using rsync MacPorts base version 2.7.2 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is outdated, installing new version 2.8.0 Installing new MacPorts release in /opt/local as root:admin; permissions 7555 Trong trường hợp bạn chỉ muốn nâng cấp một cổng cụ thể (không được khuyến nghị trừ khi bạn biết mình đang làm gì), hãy thay thế “outdated” trong lệnh ở trên bằng tên cổng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.05 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.06 Lưu ý rằng MacPorts sẽ nâng cấp bất kỳ phần phụ thuộc nào của cổng trước khi cập nhật chính cổng đó. Vì vậy, ngay cả khi bạn chỉ yêu cầu cập nhật một cổng, các cổng khác có thể được nâng cấp trước vì chúng nằm trong cây phụ thuộc. Đừng cố tránh điều này, vì nó rất có thể dẫn đến các sự cố sau này – phiên bản mới của cổng mà bạn muốn nâng cấp có thể yêu cầu phần phụ thuộc mới hơn hoặc nó có thể chỉ được nâng cấp để được xây dựng lại theo phần phụ thuộc đã cập nhật Theo mặc định, việc nâng cấp các cổng trong MacPorts không xóa các phiên bản cũ hơn. Đây là một biện pháp an toàn để đảm bảo bạn có thể quay lại phiên bản đang hoạt động và đã thử nghiệm trong trường hợp bản cập nhật gặp sự cố. Để tiết kiệm dung lượng ổ đĩa, bạn nên gỡ cài đặt định kỳ mọi phiên bản cũ mà bạn không cần nữa Sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.07 để có danh sách các cổng không hoạt động mà bạn có thể không cần nữa Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.08 Kiểm tra danh sách cho bất kỳ cổng nào bạn có thể vẫn muốn giữ lại. Để loại bỏ tất cả chúng cùng một lúc, hãy chạy Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.00 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.80 Tất nhiên, bạn cũng có thể chỉ chọn một cổng không hoạt động cụ thể, nhưng điều đó yêu cầu chỉ định phiên bản chính xác Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.81 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.82 Để gỡ cài đặt tất cả các cổng không hoạt động trừ một cổng duy nhất, bạn có thể sử dụng phím tắt sau Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.83 Nếu bạn muốn tìm tất cả các cổng phụ thuộc vào một cổng khác nhất định, bạn có thể sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.05 Nếu bạn chỉ quan tâm đến các cổng phụ thuộc mà bạn thực sự đã cài đặt, bạn có thể sử dụng 73 nhanh hơn và chính xác hơn Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.85 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.86 MacPorts cũng có một phiên bản đệ quy của tác vụ 73 có tên là ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version02 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.87 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.88 Cuối cùng, để tìm ra cổng nào bạn đã cài đặt theo cách thủ công đã gây ra cài đặt phụ thuộc tự động, hãy sử dụng biểu thức sau Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.89 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.00 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.01 Sau một thời gian sử dụng MacPorts, cài đặt và gỡ cài đặt các cổng, các gói đã được cài đặt tự động làm phụ thuộc cho các cổng khác bị bỏ lại, mặc dù chúng không còn cần thiết nữa. Các cổng chưa được cài đặt thủ công (“được yêu cầu”) và không có bất kỳ phụ thuộc nào được gọi là “rời khỏi” và có thể được xác định bằng cách sử dụng cổng giả 25, ví dụ như kết hợp với hành động Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.36 hoặc Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.35 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.02 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.03 Những chiếc lá này có thể được mong muốn, nhưng trong hầu hết các trường hợp là không cần thiết. Xem Phần 3. 3. 7, “Giữ cho cài đặt của bạn gọn gàng bằng cách xác định các lá là cổng được yêu cầu” để tìm hiểu cách đánh dấu một số lá theo yêu cầu. Bạn có thể gỡ cài đặt tất cả các lá bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.04 Lưu ý rằng việc gỡ cài đặt có thể khiến các cổng mới trở thành lá. Để gỡ cài đặt tất cả các lá, bạn có thể sử dụng cổng giả ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version06 thay thế Để thực hiện quá trình này một cách tương tác để bạn có thể chắc chắn rằng mình không gỡ cài đặt bất cứ thứ gì bạn muốn giữ lại, bạn có thể cài đặt cổng ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version07. Sau khi cài đặt, chạy nó với Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.05 Chà, trước khi chúng ta đi đến quy trình xác định các cổng được yêu cầu của bạn, hãy xem xét một tình huống điển hình mà bạn muốn hiểu cái gì thực sự được cài đặt và mặt khác, cái gì thực sự cần thiết cho hệ thống của bạn. Giả sử việc kiểm tra các bản cài đặt MacPorts của bạn sẽ cho kết quả này Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.02 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.03 Bây giờ, tùy thuộc vào người dùng để quyết định những gì cần thiết và những gì không. Chúng tôi đã nhận thấy rằng cần có ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version08 để xây dựng nhiều cổng và mặc dù nó hoàn toàn không cần thiết sau khi cài đặt, nhưng chúng tôi muốn giữ lại nó để tránh cài đặt lại nhiều lần. Chỉ cần cập nhật ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version09, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version10 và ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version11 để cập nhật ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version12 và vì phần mềm đó hiếm khi được cập nhật nên chúng tôi sẽ cài đặt lại các cổng đó khi cần. Vì tất cả chúng đều có thể phân phối được, MacPorts sẽ sử dụng các tệp nhị phân dựng sẵn để cài đặt, do đó, việc cài đặt lại chúng sẽ không mất nhiều thời gian. Chúng tôi thực sự không biết tại sao những chiếc lá còn lại lại được cài đặt, vì vậy chúng tôi sẽ gỡ bỏ chúng ngay bây giờ Vì chúng tôi đã quyết định giữ lại ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version08, nên chúng tôi sẽ đánh dấu nó là được cài đặt thủ công (“được yêu cầu” trong biệt ngữ MacPorts) bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.08 Khi bạn đã từng bước tìm ra cổng nào bạn muốn giữ lại trên hệ thống của mình và đặt chúng theo yêu cầu, bạn sẽ có một danh sách các cổng không cần thiết mà bạn có thể loại bỏ bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.04 Lưu ý rằng việc gỡ cài đặt các lá có thể đánh dấu các cổng mới là lá, vì vậy bạn sẽ phải lặp lại quy trình. Bạn có thể cài đặt cổng ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version07, đây là một tập lệnh đặc biệt cho công việc. Nó cho phép bạn quyết định một cách tương tác giữa việc giữ lại hoặc gỡ cài đặt một cổng. Chạy nó như Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.05 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.01 Bạn có thể nhận danh sách tất cả các cổng mà bạn đã đặt trước đó theo yêu cầu (hoặc cài đặt thủ công) bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.02 Chúng tôi khuyên bạn nên thỉnh thoảng kiểm tra danh sách lá để giữ cho hệ thống của bạn không có quá nhiều “rác”. Bạn cũng nên kiểm tra định kỳ danh sách các cổng được yêu cầu và đánh dấu bất kỳ cổng nào bạn không cần nữa là không được yêu cầu bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.03 Sau đó kiểm tra các lá mới để giảm số lượng cổng đã cài đặt và kích thước cài đặt MacPorts của bạn MacPorts có thể biên dịch trước các cổng thành tệp nhị phân để không cần biên dịch ứng dụng khi cài đặt trên hệ thống đích. MacPorts hỗ trợ hai loại nhị phân. kho lưu trữ và gói Lưu trữ nhị phân chỉ có thể được sử dụng trên hệ thống đích chạy MacPorts. Chúng cho phép các tiện ích MacPorts bỏ qua quá trình xây dựng (thường là giai đoạn mất nhiều thời gian nhất) và bắt đầu cài đặt sau giai đoạn hủy gốc. Lưu trữ nhị phân được tạo tự động bất cứ khi nào một cổng được cài đặt và cũng có thể được tải xuống từ máy chủ. MacPorts chạy cơ sở hạ tầng buildbot tạo các gói nhị phân dựng sẵn cho tất cả các cổng trong MacPorts cho tiền tố cài đặt mặc định. Buildbots tồn tại cho các hệ thống sau này hoặc bằng Snow Leopard. Nếu một cổng được xây dựng thành công và giấy phép của nó cũng như các giấy phép phụ thuộc của nó cho phép phân phối lại nhị phân, thì các kho lưu trữ sẽ được tải lên ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version15 và sẽ được MacPorts tự động sử dụng trong quá trình cài đặt Bạn có thể tạo thủ công một kho lưu trữ (và xem đầu ra gỡ lỗi để tạo) bằng cách sử dụng Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.04 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.05 Các tệp lưu trữ nhị phân được đặt trong ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version16. Loại tệp lưu trữ được đặt trong ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version17 bằng phím ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version18. Định dạng mặc định là ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version19; . ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version20, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version21, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version19, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version23, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version24, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version25, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version26, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version27, ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version28 và ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version29 Các gói nhị phân là các trình cài đặt nhị phân độc lập được biên dịch trước; . Do đó, chúng rất hữu ích trong việc tạo ảnh đĩa hoặc trình cài đặt để phân phối lại cho người dùng mà không cần dựa vào MacPorts để cài đặt. Trình cài đặt nhị phân được tạo bằng MacPorts thường là ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version30 (gói Trình cài đặt macOS). MacPorts cũng có thể chuyển đổi gói ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version30 thành ảnh đĩa macOS ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version32. Bạn có thể tạo các gói nhị phân bằng cách sử dụng cổng như trong các ví dụ sau Cảnh báoNếu bạn muốn tạo các gói trình cài đặt bằng cách sử dụng MacPorts để phân phối lại, hãy đảm bảo rằng bạn không sử dụng bản cài đặt tiêu chuẩn của MacPorts trong ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version33. Nếu bạn làm vậy, gói cài đặt của bạn sẽ xung đột với MacPorts trên hệ thống đã cài đặt MacPorts Thay vào đó, hãy làm theo Phần 2. 2. 4, “Cài đặt nhiều bản sao MacPorts” và chọn tiền tố dành riêng cho phần mềm bạn đang cố đóng gói, e. g. , ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version34 cho ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version35. Sau đó, sử dụng cài đặt MacPorts tùy chỉnh này để xây dựng gói của bạn Tạo trình cài đặt macOS ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version30 cho cổng ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version37 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.06 Thay vào đó, bạn cũng có thể tạo tệp ảnh đĩa macOS ---> Updating MacPorts base sources using rsync MacPorts base version 2.8.0 installed, MacPorts base version 2.8.0 downloaded. ---> Updating the ports tree ---> MacPorts base is already the latest version32 Usage: selfupdate --no-sync Upgrade MacPorts itself and run the sync target --no-sync Do not run the sync target, i.e., do not update the ports tree. Only checks for (and installs, if available) new versions of MacPorts.07 Trong hầu hết các trường hợp, bạn có thể muốn đóng gói một cổng và tất cả các phụ thuộc thời gian chạy và thư viện của nó trong một gói duy nhất. Bạn có thể sử dụng một siêu dữ liệu để làm điều này. Tạo một cái bằng cách sử dụng |