GuidePedia

0

How to Update FreeBSD Ports: 7 Steps



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.)


Method 1 of 2: Using portsnap (snapshots)



1. If 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.

2. Once 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.

3. After 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 "portmaster" or "portupgrade."


Method 2 of 2: SVN



1. If 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.

2. One 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.

3. After 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 pkgng, typing "pkg install subversion" will work too.

4. After 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.


Sources and Citations




Post a Comment Blogger

 
Top