Manual Page Search Parameters

MPORT(1) MidnightBSD General Commands Manual MPORT(1)

mportmport package manager

mport [-v] [-c ⟨chroot path⟩] [-o ⟨output path⟩] [-q] ⟨command⟩


mport autoremove

mport clean

mport config get [setting name]

mport config set [setting name] [setting value]

mport audit

mport cpe

mport list

mport list updates

mport list prime

mport info [name]

mport delete [name]

mport deleteall

mport download [-d] [name]

mport index

mport install [name]

mport mirror list

mport mirror select

mport purl

mport search [name ...]

mport shell

mport stats

mport update [name]

mport upgrade

mport verify

The mport command installs or removes mport packages, and displays information on installed packages.

The following options are supported by mport:

--version
Display the current version of mport.
⟨chroot path⟩, --chroot ⟨chroot path⟩
mport will chroot in the ⟨chroot path⟩
--quiet
Make output less verbose and hide download progress.
⟨output path⟩, --output ⟨output path⟩
mport will download packages into the ⟨output path⟩

The following commands are supported by mport:

Displays vulnerable packages installed on the system. Uses CPE data to match against a NVD feed provided by the MidnightBSD project.
Experimental! Removes all packages installed as dependencies that are no longer needed as the original package depending on them has been removed.
Clean up old packages not found in the index and perform maintenence on the database.
⟨name⟩
Displays the value of a configuration setting
⟨name⟩ ⟨value⟩
Sets the value of the configuration setting.
List all CPE information for each installed package
List all currently installed packages
List currently installed packages with updates available
List all packages explicitly installed rather than as a dependency
⟨name⟩
Print detailed information about a package
⟨name⟩
Delete or uninstall a package
Delete or uninstall all packages on the system. Useful for major OS upgrades, or testing.
⟨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.
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.
⟨name⟩
Fetch and install a package
Lists all available package mirrors.
Pings various mirrors to attempt to select the closest and sets it as default.
Lists PURL for each installed package
Search package names and descriptions. Supports globbing queries such as "*php*".
Starts a sqlite3 client connected to the mport master database.
List statistics about available and installed packages.
⟨name⟩
Fetch and update a specific package
Upgrade all currently installed packages with the latest version
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⟩.

September 4, 2023 midnightbsd-3.1