<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_13.2_Ports</id>
	<title>FreeBSD 13.2 Ports - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.completenoobs.com/noobs/index.php?action=history&amp;feed=atom&amp;title=FreeBSD_13.2_Ports"/>
	<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Ports&amp;action=history"/>
	<updated>2026-04-30T02:36:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Ports&amp;diff=401&amp;oldid=prev</id>
		<title>AwesomO: Created page with &quot;In FreeBSD, the Ports Collection is a comprehensive framework for installing and managing third-party applications. To install and update the Ports tree, follow these steps:  ==Install the Ports tree==  If you haven&#039;t installed the Ports tree during the FreeBSD installation, you can do it using the &#039;&#039;&#039;portsnap&#039;&#039;&#039; utility. First, fetch the latest snapshot of the Ports tree:  &lt;code&gt;portsnap fetch&lt;/code&gt;  After fetching the snapshot, extract it to &#039;&#039;&#039;/usr/ports&#039;&#039;&#039;:  &lt;code&gt;p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.completenoobs.com/noobs/index.php?title=FreeBSD_13.2_Ports&amp;diff=401&amp;oldid=prev"/>
		<updated>2023-05-05T14:55:19Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;In FreeBSD, the Ports Collection is a comprehensive framework for installing and managing third-party applications. To install and update the Ports tree, follow these steps:  ==Install the Ports tree==  If you haven&amp;#039;t installed the Ports tree during the FreeBSD installation, you can do it using the &amp;#039;&amp;#039;&amp;#039;portsnap&amp;#039;&amp;#039;&amp;#039; utility. First, fetch the latest snapshot of the Ports tree:  &amp;lt;code&amp;gt;portsnap fetch&amp;lt;/code&amp;gt;  After fetching the snapshot, extract it to &amp;#039;&amp;#039;&amp;#039;/usr/ports&amp;#039;&amp;#039;&amp;#039;:  &amp;lt;code&amp;gt;p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In FreeBSD, the Ports Collection is a comprehensive framework for installing and managing third-party applications. To install and update the Ports tree, follow these steps:&lt;br /&gt;
&lt;br /&gt;
==Install the Ports tree==&lt;br /&gt;
&lt;br /&gt;
If you haven&amp;#039;t installed the Ports tree during the FreeBSD installation, you can do it using the &amp;#039;&amp;#039;&amp;#039;portsnap&amp;#039;&amp;#039;&amp;#039; utility. First, fetch the latest snapshot of the Ports tree:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;portsnap fetch&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After fetching the snapshot, extract it to &amp;#039;&amp;#039;&amp;#039;/usr/ports&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;portsnap extract&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:* Note: can also be done on one line: &amp;lt;code&amp;gt;portsnap fetch extract&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Update the Ports tree==&lt;br /&gt;
&lt;br /&gt;
To update the Ports tree, first fetch the latest updates using &amp;#039;&amp;#039;&amp;#039;portsnap&amp;#039;&amp;#039;&amp;#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;portsnap fetch&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then, apply the updates to your local Ports tree:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;portsnap update&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That&amp;#039;s it! Now your Ports tree is up-to-date.&lt;br /&gt;
&lt;br /&gt;
===(Optional) Automate Ports tree updates===&lt;br /&gt;
&lt;br /&gt;
If you want to automate the process of updating the Ports tree, you can create a simple cron job. First, open the root user&amp;#039;s crontab:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;crontab -e&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the following line to update the Ports tree daily at 3:30 AM:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;30 3 * * * /usr/sbin/portsnap -I cron update&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save and exit the editor. The Ports tree will now be updated automatically every day at the specified time.&lt;br /&gt;
&lt;br /&gt;
Remember that updating the Ports tree only updates the available ports; it does not update the installed applications themselves. To update your installed applications, you need to use tools like &amp;#039;&amp;#039;&amp;#039;portmaster&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;portupgrade&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Example - walk through ==&lt;br /&gt;
&lt;br /&gt;
===Install &amp;#039;&amp;#039;&amp;#039;sudo&amp;#039;&amp;#039;&amp;#039; with insults enabled/configured===&lt;br /&gt;
Why sudo with insults enabled? Because life must be enjoyed!&lt;br /&gt;
====Navigate to the sudo port directory====&lt;br /&gt;
&lt;br /&gt;
First, change your working directory to the sudo port directory in the ports tree:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;cd /usr/ports/security/sudo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Enable the INSULTS option====&lt;br /&gt;
&lt;br /&gt;
To enable the insults feature in sudo, you&amp;#039;ll need to customize the port&amp;#039;s options. Run the following command:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make config&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will open a text-based interface showing a list of options for the sudo port. Look for the &amp;quot;&amp;#039;&amp;#039;&amp;#039;INSULTS&amp;#039;&amp;#039;&amp;#039;&amp;quot; option, which should be unchecked by default. Use the arrow keys to highlight &amp;quot;&amp;#039;&amp;#039;&amp;#039;INSULTS&amp;#039;&amp;#039;&amp;#039;&amp;quot; and press the spacebar to enable it (an asterisk (*) will appear next to it). After that, press &amp;#039;Enter&amp;#039; to save the configuration and exit.&lt;br /&gt;
&lt;br /&gt;
====Build and install sudo====&lt;br /&gt;
&lt;br /&gt;
Now that you&amp;#039;ve enabled the INSULTS option, you can build and install the sudo port by running:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;make install clean&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This command will compile &amp;#039;&amp;#039;&amp;#039;sudo&amp;#039;&amp;#039;&amp;#039; with the specified options and install it on your system. The process may take a few minutes, depending on your system&amp;#039;s resources.&lt;br /&gt;
&lt;br /&gt;
====Configure sudo====&lt;br /&gt;
&lt;br /&gt;
After installing sudo, you need to configure it by editing the sudoers file. To do this safely, use the &amp;#039;&amp;#039;&amp;#039;visudo&amp;#039;&amp;#039;&amp;#039; command, which will open the sudoers file in your default text editor: Warning default $EDITOR will be &amp;#039;&amp;#039;&amp;#039;vi&amp;#039;&amp;#039;&amp;#039; Learn Basic &amp;#039;&amp;#039;&amp;#039;vi&amp;#039;&amp;#039;&amp;#039; first!&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;visudo&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In the sudoers file, look for the line that defines user privilege specifications. It should look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
root ALL=(ALL) ALL&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To grant your user account sudo privileges, add a new line with your username and the same format, replacing &amp;#039;username&amp;#039; with your actual username:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;username ALL=(ALL) ALL&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save the file and exit the text editor.&lt;br /&gt;
&lt;br /&gt;
====Test sudo with insults====&lt;br /&gt;
&lt;br /&gt;
To test your newly installed sudo with insults enabled, try running a command that requires root privileges. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sudo ls /root&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:    If you enter an incorrect password, &amp;#039;&amp;#039;&amp;#039;sudo&amp;#039;&amp;#039;&amp;#039; should now respond with a random insult instead of the standard error message.&lt;br /&gt;
&lt;br /&gt;
Congratulations! You&amp;#039;ve successfully installed sudo with insults enabled from FreeBSD 13.2 ports. Enjoy the amusing responses whenever you mistype your password.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Keep Port Install&amp;#039;s Updated==&lt;/div&gt;</summary>
		<author><name>AwesomO</name></author>
	</entry>
</feed>