mport
— mport
package manager
mport |
[-v ] [-c ⟨chroot
path⟩] [-o ⟨output path⟩]
[-q ] ⟨command⟩ |
mport |
config get [setting
name] |
mport |
config set [setting name]
[setting value] |
mport |
download [-d ]
[name] |
The mport
command installs or removes
mport packages, and displays information on installed packages.
The following options are supported by
mport
:
-v,
--version
- Display the current version of
mport
.
-c
⟨chroot path⟩, --chroot
⟨chroot
path⟩
mport
will chroot in the ⟨chroot
path⟩
-q,
--quiet
- Make output less verbose and hide download progress.
-o
⟨output path⟩, --output
⟨output
path⟩
mport
will download packages into the
⟨output path⟩
The following commands are supported by
mport
:
audit
- Displays vulnerable packages installed on the system. Uses CPE data to
match against a NVD feed provided by the MidnightBSD project.
autoremove
- Experimental! Removes all packages installed as dependencies that are no
longer needed as the original package depending on them has been
removed.
clean
- Clean up old packages not found in the index and perform maintenence on
the database.
config
get
⟨name⟩
- Displays the value of a configuration setting
config
set
⟨name⟩ ⟨value⟩
- Sets the value of the configuration setting.
cpe
- List all CPE information for each installed package
list
- List all currently installed packages
list
updates
- List currently installed packages with updates available
list
prime
- List all packages explicitly installed rather than as a dependency
info
⟨name⟩
- Print detailed information about a package
delete
⟨name⟩
- Delete or uninstall a package
deleteall
- Delete or uninstall all packages on the system. Useful for major OS
upgrades, or testing.
download
⟨name⟩
- Download a package, but do not install it. Useful for later offline
installations. The d flag will allow it to download dependencies as
well.
index
- Force a download of the index to refresh it without waiting for the
timeout interval. This allows the user to get the latest list of
packages.
install
⟨name⟩
- Fetch and install a package
mirror
list
- Lists all available package mirrors.
mirror
select
- Pings various mirrors to attempt to select the closest and sets it as
default.
purl
- Lists PURL for each installed package
search
- Search package names and descriptions. Supports globbing queries such as
"*php*".
shell
- Starts a sqlite3 client connected to the mport master database.
stats
- List statistics about available and installed packages.
update
⟨name⟩
- Fetch and update a specific package
upgrade
- Upgrade all currently installed packages with the latest version
verify
- Verify currently installed packages have not had files deleted or modified
from the original installation.
The mport
command has the following
settings that modify it's behavior:
mirror_region
Determines which mirror region to use to fetch packages. Valid values are
currently us, us2, us3, uk, jp The current list is always available in the
mport index file in /var/db/mport/index.db in the mirrors table
target_os
Override the OS version used to fetch packages and install them. If undefined,
we try /bin/midnightbsd-version first and fall back to the running kernel
version.
index_last_check
This is the last time the index file was checked for an update.
index_autoupdate
Determines if the index file will be updated automatically. If set to NO or
FALSE, it will be skipped unless it is missing entirely. A persistent version
of the mport -U flag.
Search for a package:
$ mport search curl
Install a package:
Installing must specify a unique
origin
% mport install curl
List installed packages:
$ mport list
Upgrade all installed packages:
% mport upgrade
Upgrade a single package:
% mport update gmake
List packages needing upgrades:
$ mport list updates
List non-automatic packages:
$ mport list prime
Delete an installed package:
% mport delete curl
Remove unneeded dependencies:
% mport autoremove
Determine which package installed a file:
$ mport which
/usr/local/bin/curl
Check installed packages for checksum mismatches:
# mport verify
The mport
command first appeared in
The mport
utility and manual page were
written by Lucas Holt
⟨luke@MidnightBSD.org⟩.