|
Lines 197-205
Link Here
|
| 197 |
<para>Before installing any application, check <uri |
197 |
<para>Before installing any application, check <uri |
| 198 |
xlink:href="http://vuxml.freebsd.org/">http://vuxml.freebsd.org/</uri> |
198 |
xlink:href="http://vuxml.freebsd.org/">http://vuxml.freebsd.org/</uri> |
| 199 |
for security issues related to the application or install |
199 |
for security issues related to the application or install |
| 200 |
<package>ports-mgmt/portaudit</package>. Once installed, type |
200 |
<package>ports-mgmt/portaudit</package>. Once installed, type |
| 201 |
<command>portaudit -F -a</command> to check all installed |
201 |
<command>portaudit -F -a</command> to check all installed |
| 202 |
applications for known vulnerabilities.</para> |
202 |
applications for known vulnerabilities. If you are using |
|
|
203 |
<application>pkg</application>, the audit functionality is |
| 204 |
built in, simply run: <command>pkg audit -F</command>.</para> |
| 203 |
</warning> |
205 |
</warning> |
| 204 |
|
206 |
|
| 205 |
<para>The remainder of this chapter explains how to use packages |
207 |
<para>The remainder of this chapter explains how to use packages |
|
Lines 246-251
Link Here
|
| 246 |
</listitem> |
248 |
</listitem> |
| 247 |
|
249 |
|
| 248 |
<listitem> |
250 |
<listitem> |
|
|
251 |
<indexterm> |
| 252 |
<primary>pkg</primary> |
| 253 |
<secondary>search</secondary> |
| 254 |
</indexterm> |
| 255 |
|
| 256 |
<para xml:id="pkg-search">To search the binary package |
| 257 |
repository for an application:</para> |
| 258 |
|
| 259 |
<screen>&prompt.root; <userinput>pkg search <replaceable>subversion</replaceable></userinput> |
| 260 |
git-subversion-1.8.5.2 |
| 261 |
java-subversion-1.8.5 |
| 262 |
p5-subversion-1.8.5 |
| 263 |
py27-hgsubversion-1.5.1 |
| 264 |
py27-subversion-1.8.5 |
| 265 |
ruby-subversion-1.8.5 |
| 266 |
subversion-1.6.23_2 |
| 267 |
subversion-1.7.14 |
| 268 |
subversion-1.8.5 |
| 269 |
subversion-book-4515 |
| 270 |
subversion-static-1.8.5</screen> |
| 271 |
|
| 272 |
<para>Package names include the version number and in the |
| 273 |
case of ports based on python, the version number of the |
| 274 |
version of python the package was built with. Some ports |
| 275 |
also have multiple versions available. In the case of |
| 276 |
<application>subversion</application> there are different |
| 277 |
versions available, as well as different compile options, |
| 278 |
in this case, the staticly linked version of |
| 279 |
<application>subversion</application>. When indicating |
| 280 |
which package to install, it is best to specify the |
| 281 |
application by the port origin, the path in the ports tree. |
| 282 |
Repeat the <command>pkg search</command> with |
| 283 |
<option>-o</option> to list the origin of each |
| 284 |
package:</para> |
| 285 |
|
| 286 |
<screen>&prompt.root; <userinput>pkg search -o <replaceable>subversion</replaceable></userinput> |
| 287 |
devel/git-subversion |
| 288 |
java/java-subversion |
| 289 |
devel/p5-subversion |
| 290 |
devel/py-hgsubversion |
| 291 |
devel/py-subversion |
| 292 |
devel/ruby-subversion |
| 293 |
devel/subversion16 |
| 294 |
devel/subversion17 |
| 295 |
devel/subversion |
| 296 |
devel/subversion-book |
| 297 |
devel/subversion-static</screen> |
| 298 |
|
| 299 |
<para><command>pkg search</command> also supports searching |
| 300 |
using shell globs, regular expressions, exact match, |
| 301 |
search by description, or any other field in the |
| 302 |
repository database. See &man.pkg-search.8;</para> |
| 303 |
</listitem> |
| 304 |
|
| 305 |
<listitem> |
| 249 |
<para>If the Ports Collection is already installed, there are |
306 |
<para>If the Ports Collection is already installed, there are |
| 250 |
several methods to query the local version of the ports |
307 |
several methods to query the local version of the ports |
| 251 |
tree. To find out which category a port is in, type |
308 |
tree. To find out which category a port is in, type |