Easy Way to Upgrade FreeBSD's Ports Easy Way to שדרוג FreeBSD של יציאות
Before you can update and upgrade the FreeBSD's ports, the Ports Collection needs to be updated. לפני שתוכל לעדכן ולשדרג את FreeBSD של יציאות, את אוסף יציאות יש לעדכן. Follow step עקוב אחר צעד here כאן to update the Ports Collection. כדי לעדכן את אוסף יציאות.
Once you updated your Ports Collection, before attempting a port upgrade, you should check the /usr/ports/UPDATING file. לאחר שעדכנת את אוסף יציאות שלך, לפני שתנסה לבצע שדרוג נמל, כדאי לבדוק את usr / ports / עדכון הקובץ. This file describes various issues and additional steps users may encounter and need to perform when updating a port. קובץ זה מתאר בעיות שונות למשתמשים צעדים נוספים עשוי להיתקל ואת הצורך לבצע בעת עדכון יציאה.
Keeping the ports up to date can be a tedious job. שמירה על יציאות עד לתאריך יכול להיות עבודה מייגעת. 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. רק לדוגמה, כדי לשדרג את נמל אתה צריך ללכת לספרייה יציאות, לבנות את הנמל, deinstall הנמל הישן, להתקין את הנמל החדש, ולאחר מכן לנקות אחרי לבנות. If there are numerous ports that need to be upgrade, it will be very troublesome. אם יש יציאות רבות שצריך לשדרג, זה יהיה מאוד בעייתי. 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. זו היתה בעיה גדולה עבור מנהלי מערכות להתמודד עם, ו FreeBSD שירות אשר יש לעשות זאת באופן אוטומטי, וזה sysutils / השירות portupgrade.
To install sysutils/portupgrade utility, use the command just as to install any other port: make install clean. כדי להתקין sysutils / השירות portupgrade, השתמש בפקודה להתקין בדיוק כמו כל יציאה אחרת: להפוך להתקין נקי.
Create a database with the following command: pkgdb -F ליצור מסד נתונים עם הפקודה הבאה: pkgdb-F
The command will read the list of installed ports and create a database file in the /var/db/pkg directory. הפקודה יהיה לקרוא את הרשימה של יציאות מותקן ליצור קובץ מסד הנתונים var / / db / pkg בספרייה.
Run portupgrade -a to start to update the ports. Portupgrade Run-כדי להתחיל לעדכן את היציאות.
The portupgrade will read the database file created by pkgdb -F and the ports INDEX file. Portupgrade יהיה לקרוא את קובץ מסד הנתונים שנוצר על ידי pkgdb-F ו היציאות סודרן. Finally, portupgrade will begin to download, build, backup, install, and clean the ports which have been updated. לבסוף, portupgrade יתחיל להוריד, לבנות, גיבוי, התקנה, ולנקות את היציאות אשר עודכנו.
Portupgrade utility has a lot of options for different uses, the most important ones listed below. השירות Portupgrade יש הרבה אפשרויות עבור שימושים שונים, החשובים שבהם המפורטים להלן.
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. אם אתה רוצה לשדרג רק יישומים מסוימים, לא את מסד הנתונים המלא, pkgname portupgrade להשתמש, לכלול את הדגלים-R אם portupgrade צריכים לפעול על כל אלו חבילות בהתאם החבילה נתן גם, ו-R לפעול על כל חבילות הנדרש חבילות נתון.
To use packages instead of ports for installation, provide -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. עם אפשרות זו portupgrade חיפושים ספריות מקומיות המפורטות PKG_PATH, או מביאה חבילות מאתר מרחוק אם הוא לא נמצא באופן מקומי. If packages can not be found locally or fetched remotely, portupgrade will use ports. חבילות אם לא ניתן למצוא הביא מקומית או מרחוק, portupgrade יהיה להשתמש ביציאות. To avoid using ports, specify -PP. להימנע משימוש יציאות, לציין-PP.
To just fetch distfiles (or packages, if -P is specified) without building or installing anything, use -F. רק כדי להביא distfiles (או חבילות, אם-P המצוין) ללא בנייה או התקנה של דבר, להשתמש-F.
Note: It is important to regularly update the package database using pkgdb -F to fix inconsistencies, especially when portupgrade asks you to. הערה: חשוב לעדכן בקביעות את מסד הנתונים בעזרת חבילת pkgdb-f כדי לתקן חוסר עקביות, במיוחד כאשר portupgrade מבקש ממך. Do not abort portupgrade while it is updating the package database, this will leave you an inconsistent database. האם portupgrade לא להפיל בזמן זה בעדכון מסד הנתונים החבילה, זה ישאיר לך מסד נתונים עקביים.
IMPORTANT : The page is machine translated and provided "as is" without warranty. חשוב: הדף מכונת תירגם מתפרסם "כמות שהוא" ללא אחריות. Machine translation may be difficult to understand. תרגום מכונה יכול להיות קשה להבין. Please refer to נא עיין original English article המאמר המקורי באנגלית whenever possible. בכל הזדמנות אפשרית.
Related Articles מאמרים קשורים
- Using Portsnap to Update FreeBSD Ports Tree Collection באמצעות עדכון עץ Portsnap ל FreeBSD Ports Collection
- Update FreeBSD Ports Collection to Latest Version with Security Update with Portmanager and Portaudit עדכון FreeBSD יציאות אוסף את הגרסה האחרונה עם עדכון אבטחה עם Portmanager ו Portaudit
- Update FreeBSD Ports Collection Up to Date and Latest עדכון FreeBSD יציאות אוסף מעודכן אחרונות
- Portdowngrade – Downgrade to Previous Version of FreeBSD's Ports Portdowngrade - שדרוג לאחור כדי הגירסה הקודמת של יציאות של FreeBSD
- Searching for Application in FreeBSD's Ports Collection מחפש יישום אוסף יציאות של FreeBSD
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 התקנת שרת אינטרנט ב FreeBSD 6.0 עם Apache 2.2, MySQL 5.0 ו-PHP 5 - חלק 3
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 התקנת שרת אינטרנט ב FreeBSD 6.0 עם Apache 2.2, MySQL 5.0 ו-PHP 5 - חלק 5
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD התקנה והגדרת התצורה DHCP Server (DHCPd) on FreeBSD
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 התקנת שרת אינטרנט ב FreeBSD 6.0 עם Apache 2.2, MySQL 5.0 ו-PHP 5 - חלק 4
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 התקנת שרת אינטרנט ב FreeBSD 6.0 עם Apache 2.2, MySQL 5.0 ו-PHP 5 - חלק 1









































