How to Update FreeBSD Ports
Having setup your new FreeBSD machine, you'll probably need to update
that beast every once in a while. Here, I'll show you the most simple
way of updating ports. (note: commands are quoted and italicized, do not
type in the quotes.)
1
Using portsnap (snapshots)
-
1If you have a GUI already installed. Please open the terminal application that you would commonly use. If a GUI is not present on your machine, then move on to the next step.
-
2Once you have the Terminal open (or if you're logged into your user and have no GUI). Please type in "su -" followed by the password to the root account.
- Only the root user can update, or install things from ports.
-
3After successfully logging into the root user. If this is a new install and you have not updated ports before, type "portsnap fetch extract" and it'll fetch the latest snapshot of ports and extract it to the proper directory.
- If this is after the first time you've updated ports, as well as to update ports in the future after doing the first update. Type "portsnap fetch update" to update ports.
- To update the applications on the machine, it would be a good idea to install from ports either "port master" or "port-up-grade."
2
SVN
-
1If you have a GUI already installed. Please open the terminal application that you would commonly use. If a GUI is not present on your machine, then move on to the next step.
-
2One you have the terminal open (or if you're logged into your user and have no GUI). Please type in "su -" followed by the password to the root account.
- Only the Root user can update, or install things from the ports collection.
-
3After successfully logging into the root user. You'll need to install SVN; So type in "cd /usr/ports/devel/subversion" and "make install clean"
- If you're using pkg-ing, typing "pkg install subversion" will work too.
-
4After Subversion is installed. You can type in "svn checkout https://svn0.us-east.FreeBSD.org/ports/head /usr/ports" to connect the folder with subversion, and then "svn update /usr/ports" to update the ports collection
- You can replace "us-east" above with either "us-west", or "eu" depending on your location.
Things You'll Need
- Root access to the machine.
- Basic knowledge on operating the terminal.
- Subversion (Optional)
Post a Comment for "How to Update FreeBSD Ports"