Easy Way to Upgrade FreeBSD's Ports Lengvas būdas atnaujinti FreeBSD Ports
Before you can update and upgrade the FreeBSD's ports, the Ports Collection needs to be updated. Prieš galite atnaujinti ir modernizuoti FreeBSD uostų, rinkimo uostuose turi būti atnaujinta. Follow step Atlikite here čia to update the Ports Collection. atnaujinti rinkimo uostuose.
Once you updated your Ports Collection, before attempting a port upgrade, you should check the /usr/ports/UPDATING file. Kai jūs atnaujinsite savo rinkimo uostuose, prieš bandant uosto atnaujinimas, turėtumėte patikrinti, / usr / ports / atnaujinimo failas. This file describes various issues and additional steps users may encounter and need to perform when updating a port. Šis failas aprašo įvairių klausimų ir papildomų priemonių naudotojai gali susidurti ir reikia atlikti, kai atnaujinimo uosto.
Keeping the ports up to date can be a tedious job. Laikydami uostai iki datos, gali būti varginantis darbas. 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. Tiesiog, pavyzdžiui, modernizuoti uosto jums reikia eiti į uostus katalogas, statyti uostą, deinstall senojo uosto, įrengti naują uostą, o tada valymas po statybų. If there are numerous ports that need to be upgrade, it will be very troublesome. Jeigu yra daug uostų, kad reikia atnaujinti, tai bus labai varginantis. 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. Tai buvo didelė problema, sistemos administratoriams tvarkyti, ir FreeBSD yra komunalinių paslaugų, kurie šio automatiškai, ir tai sysutils / portupgrade naudingumas.
To install sysutils/portupgrade utility, use the command just as to install any other port: make install clean. Įdiegti sysutils / portupgrade naudingumas, naudokite komandą kaip įdiegti kitas uosto: make install clean.
Create a database with the following command: pkgdb -F Kurkite pagal tokią komandą bazėje: pkgdb-F
The command will read the list of installed ports and create a database file in the /var/db/pkg directory. Komanda skaityti įrengtų uostų sąrašą ir sukurti duomenų failą / var / db / pkg kataloge.
Run portupgrade -a to start to update the ports. Pradėti portupgrade-pradėti atnaujinti uostų.
The portupgrade will read the database file created by pkgdb -F and the ports INDEX file. Portupgrade skaitys bazės failas sukurtas pkgdb-F ir uostų RODYKLĖ failas. Finally, portupgrade will begin to download, build, backup, install, and clean the ports which have been updated. Galiausiai portupgrade pradės atsisiųsti, statyti, kurti atsargines kopijas, įdiekite ir švarus uostus, kuriuose buvo atnaujinti.
Portupgrade utility has a lot of options for different uses, the most important ones listed below. Portupgrade naudingumas turi galimybių skirtingus taikymo būdus, svarbiausius žemiau aikštelė.
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. Jei norite atnaujinti tik tam tikriems taikymo, nėra duomenų bazės, naudojimui portupgrade pkgname, įtraukti vėliavos-R jei portupgrade turi imtis visų tos pakuotės, atsižvelgiant į šį paketą taip pat ir-R veikti ant visų pakuočių, kurių reikalauja kadangi pakuočių.
To use packages instead of ports for installation, provide -P. Naudoti pakuotes vietoj uostų įrengimą, pateikia-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. Naudodami šią parinktį portupgrade ieško vietos kataloguose išvardytų PKG_PATH, arba ima paketais nuotolinio svetainę, jei ji nėra nustatyta vietoje. If packages can not be found locally or fetched remotely, portupgrade will use ports. Jei pakuotės negalima rasti vietoje arba nuotoliniu būdu paima, portupgrade naudosime uostuose. To avoid using ports, specify -PP. Vengti naudoti uostai, nurodyti-PP.
To just fetch distfiles (or packages, if -P is specified) without building or installing anything, use -F. Tiesiog atnešti distfiles (arba paketus, jei P yra nurodyta) be statybos ar įrengimo nieko, naudoti-F.
Note: It is important to regularly update the package database using pkgdb -F to fix inconsistencies, especially when portupgrade asks you to. Pastaba: Labai svarbu reguliariai atnaujinti duomenų paketų naudojant pkgdb-F nustato neatitikimus, ypač kai portupgrade prašo tavęs. Do not abort portupgrade while it is updating the package database, this will leave you an inconsistent database. Negalima nutraukti portupgrade o ji atnaujina duomenų paketų, tai paliks jums neatitinka duomenų bazėje.
IMPORTANT : The page is machine translated and provided "as is" without warranty. DĖMESIO: Šis puslapis yra mašina išvertė ir pateikiama "kaip yra" be garantijų. Machine translation may be difficult to understand. Automatinis vertimas gali būti sunku suprasti. Please refer to Remkitės original English article originalas anglų straipsnis whenever possible. jei įmanoma.
Related Articles Susiję straipsniai
- Using Portsnap to Update FreeBSD Ports Tree Collection Naudojant Portsnap atnaujinti FreeBSD Ports medis Collection
- Update FreeBSD Ports Collection to Latest Version with Security Update with Portmanager and Portaudit Atnaujinti FreeBSD rinkimo uostuose naujausia versija su saugos naujinimas su Portmanager ir Portaudit
- Update FreeBSD Ports Collection Up to Date and Latest Atnaujinti FreeBSD rinkimo uostuose atnaujinamas bei Naujausios
- Portdowngrade – Downgrade to Previous Version of FreeBSD's Ports Portdowngrade - Grįžti prie ankstesnės versijos FreeBSD uostai
- Searching for Application in FreeBSD's Ports Collection Paieška taikymo FreeBSD rinkimo uostuose
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 3 dalis
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 5 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 5 dalis
- Installing and Configuring DHCP Server (DHCPd) on FreeBSD Diegimas ir konfigūravimas DHCP serveris (dhcpd) FreeBSD
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 4 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 4 dalis
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 1 Diegimas web serveris FreeBSD 6,0 su Apache 2.2, MySQL 5.0, PHP 5 - 1 dalis









































