This is the documentation for the 20.08 version. Looking for the documentation of the latest version? Have a look here.
The package management commands allow the operator to install new software packages as well as discover and perform updates for installed packages.
Package Information Commands¶
There are three commands which query the package database.
<pkg-glob> is a simple regular expression. It consists of a string of
alphanumeric characters which is optionally prefixed or suffixed with a
* character indicates zero or more characters.
matches only the package
abcand would not match
zabcand would not match
abczand would not match
matches any package with
abccontained anywhere in its name.
matches any package.
Do not escape or quote the glob as would typically be required by a
Unix shell. The glob
abc\* is not the same as
The first two commands have qualifiers that limit the scope of the packages to all, installed, or updatable packages. These limitations are optional, and if not specified then it defaults to all packages in the database.
To display detailed information on packages:
tnsr# package info [ available | installed | updates ] <pkg-glob>
package information is limited to the first 25 packages found. If a
query returns more items, a more specific
pkg-glob must be used to narrow
To display a simple listing of package names and versions for all matching packages:
tnsr# package list [ available | installed | updates ] <pkg-glob>
search command searches for a string in either the package name or
description. The output includes the package name and description of the
package. The search term is literal, it is not a regular expression or glob:
tnsr# package search <term>
Recommended procedure is to reboot the router after any package install, remove, or upgrade operation.
To install a package and its required dependencies:
package install <pkg-glob>
To reinstall a package which is already present on TNSR:
package reinstall <pkg-glob>
To remove a package:
package remove <pkg-glob>
To upgrade a package:
package upgrade [ <pkg-glob> ]
To clean up cached downloaded copies of package files: