|
Lines 1160-1168
Link Here
|
| 1160 |
<title>Upgrading Ports</title> |
1160 |
<title>Upgrading Ports</title> |
| 1161 |
|
1161 |
|
| 1162 |
<indexterm> |
1162 |
<indexterm> |
| 1163 |
<primary>portupgrade</primary> |
|
|
| 1164 |
</indexterm> |
| 1165 |
<indexterm> |
| 1166 |
<primary>ports</primary> |
1163 |
<primary>ports</primary> |
| 1167 |
<secondary>upgrading</secondary> |
1164 |
<secondary>upgrading</secondary> |
| 1168 |
</indexterm> |
1165 |
</indexterm> |
|
Lines 1174-1179
Link Here
|
| 1174 |
encounter and need to perform when updating a port.</para> |
1171 |
encounter and need to perform when updating a port.</para> |
| 1175 |
</note> |
1172 |
</note> |
| 1176 |
|
1173 |
|
|
|
1174 |
<sect3 id="portupgrade"> |
| 1175 |
<title>portupgrade</title> |
| 1176 |
<indexterm> |
| 1177 |
<primary>portupgrade</primary> |
| 1178 |
</indexterm> |
| 1179 |
|
| 1180 |
|
| 1177 |
<para>Keeping your ports up to date can be a tedious job. For |
1181 |
<para>Keeping your ports up to date can be a tedious job. For |
| 1178 |
instance, to upgrade a port you would go to the ports |
1182 |
instance, to upgrade a port you would go to the ports |
| 1179 |
directory, build the port, deinstall the old port, install the |
1183 |
directory, build the port, deinstall the old port, install the |
|
Lines 1233-1238
Link Here
|
| 1233 |
<para>Other utilities exist which will do this, check out the |
1237 |
<para>Other utilities exist which will do this, check out the |
| 1234 |
<filename>ports/sysutils</filename> directory and see what you |
1238 |
<filename>ports/sysutils</filename> directory and see what you |
| 1235 |
come up with.</para> |
1239 |
come up with.</para> |
|
|
1240 |
</sect3> |
| 1241 |
<sect3 id="portmanager"> |
| 1242 |
<title>portmanager</title> |
| 1243 |
<indexterm><primary>portmanager</primary></indexterm> |
| 1244 |
<indexterm><primary>ports</primary><secondary>upgrading</secondary></indexterm> |
| 1245 |
<para>After updating your ports tree installed ports may easily be |
| 1246 |
brought up to date with <filename |
| 1247 |
role="package">sysutils/portmanager</filename>. |
| 1248 |
Installation and setup from the standard ports tree location is simple:</para> |
| 1249 |
<screen>&prompt.root; <userinput>cd /usr/ports/sysutils/portmanager</userinput></screen> |
| 1250 |
<screen>&prompt.root; <userinput>make install clean</userinput></screen> |
| 1251 |
<para>Once installed the only command needed to update all installed ports is:</para> |
| 1252 |
<screen>&prompt.root; <userinput>portmanager -u</userinput></screen> |
| 1253 |
<para>Portmanager can also add new ports to your installed software |
| 1254 |
collection, when used to install ports it will correctly update |
| 1255 |
or add any dependencies prior to building and installing the new |
| 1256 |
port. example:</para> |
| 1257 |
<screen>&prompt.root; <userinput>portmanager x11/gnome2</userinput></screen> |
| 1258 |
<para>will first insure all dependencies of x11/gnome2 are installed and up to date, |
| 1259 |
then x11/gnome2 will be installed.</para> |
| 1260 |
<para>Fixing a problem port when it is dependency related is easy, example:</para> |
| 1261 |
<screen>&prompt.root; <userinput>portmanager sysutils/problemPort -f</userinput></screen> |
| 1262 |
<para>all of sysutils/problemPort's dependencies will be rebuilt in a logical order |
| 1263 |
then rebuilding of sysutils/problemPort is attempted.</para> |
| 1264 |
<para>For further information see man portmanager(1)</para> |
| 1265 |
</sect3> |
| 1236 |
</sect2> |
1266 |
</sect2> |
| 1237 |
</sect1> |
1267 |
</sect1> |