opkg(1)
π opkg(1) β the manual page but make it make sense π
okay so bestie, you've found it: the opkg(1) manual. Yes, that's the User Commands one. Yes, I read the whole thing so you don't have to. Grab a π and let's go.
β¨ NAME β¨
opkg β a command line utility to install, upgrade and uninstall opkg software packages πΈ
π¦ SYNOPSIS π¦
opkg [OPTIONS...] sub-command [ARGUMENTS...]
π DESCRIPTION π
opkg is a simple little utility to install, upgrade and uninstall opkg software packages. It's a lightweight package management system, and it's based on Ipkg β like, that's its whole ancestry. Lowkey iconic lineage, no cap. π
π OPTIONS AND COMMANDS π
π SUB-COMMANDS : PACKAGE MANIPULATION π
This is the section where we actually do stuff. Main character energy only. β¨
updateβ Update list of available packagesupgradeβ Upgrade installed packagesdist-upgradeβ Upgrade operation that allows package removal. Heads up: only available on the libsolv backend πinstall <package(s)>β Install package(s)configure <package(s)>β Configure unpacked package(s)remove <packages|glob>β Remove package(s). Theglobworks like a shell globbing pattern and could be something like'pkgname*','*file*'or similar π«Άcleanβ Clean internal cacheflag <flag> <packages>β Flag package(s). Available flags (one per invocation):holdnopruneuserokinstalledunpacked
versionβ Print version
π§ INFORMATIONAL SUB-COMMANDS π§
Not me being obsessed with a read-only section. This is the "just tell me things" era and honestly? It ate. π
listβ List available packageslist-installedβ List installed packageslist-upgradableβ List installed and upgradable packageslist-changed-conffilesβ List package configuration files which have been modified after installationfiles <package>β List files belonging to packagesearch <file|glob>β List package providing filefind <regexp>β List packages with names or description matchingregexpinfo [package|glob]β Display all info for selected packagesstatus [package|glob]β Display all statuses for selected packagesdownload <package>β Download package to current directorycompare-versions <version1> <operator> <version2>β compare versions using following operators:<<β less than<β less than or equal to<=β less than or equal to=β equal to>=β greater than or equal to>β greater than or equal to>>β greater than
okay bestie I'm just the messenger π β that's exactly how the page lists the operators, duplicates and all. Don't come for me, come for the docs.
print-architectureβ List installable package architecturesdepends [-A] <package(s)|glob>whatdepends [-A] <package(s)|glob>whatdependsrec [-A] <package(s)|glob>whatrecommends [-A] <package(s)|glob>whatsuggests [-A] <package(s)|glob>whatprovides [-A] <package(s)|glob>whatconflicts [-A] <package(s)|glob>whatreplaces [-A] <package(s)|glob>verify <package(s)|glob>β Verifies the integrity of <pkg>, or all packages if omitted, by comparing themd5sumof each file with the information stored on the opkg metadata database. Detective mode fr fr π
β OPTIONS β
The flags. The seasoning. The little guys that change everything. π
-Aβ Query all packages not just those installed-V <level>,--verbosity <level>β Set verbosity level to level. Verbosity levels:0β errors only1β normal messages (default)2β informative messages3β debug4β debug level 2
-f <conf_file>,--conf <conf_file>β Use conf_file as the opkg configuration file--cache-dir <directory>β Use a package cache-t <directory>,--tmp-dir <directory>β Specify directory as temporary directory-l <directory>,--lists-dir <directory>β Specify directory as package lists directory-d <dest_name>,--dest <dest_name>β Use dest_name as the the root directory for package installation, removal, upgrading. dest_name should be a defined dest name from the configuration file, (but can also be a directory name in a pinch). iykyk π-o <directory>,--offline-root <directory>β Use directory as the root directory for offline installation of packages.--add-dest <name>:<path>β Register path as installation target name for use in conjunction with--dest--add-arch <arch>:<prio>β Register the package architecture arch with the numeric priority prio. Lower priorities take precedence.--add-exclude <name>β Register package to be excluded from install--add-ignore-recommends <name>β Register package to be ignored as a recomendee--prefer-arch-to-versionβ Use the architecture priority package rather than the higher version one if more than one candidate is found.--combineβ Combine upgrade and install operations, this may be needed to resolve dependency issues. Only available for the internal solver backend.--fields <field1>,<field2>β Limit display information to the specified fields plus the package name. Valid forinfoandstatus.--short-descriptionβ Display only the first line of the description.--sizeβ Print package size when listing available packages
π₯ FORCE OPTIONS π₯
β οΈ real talk bestie: these override the checks that exist for a reason. They're not toys. Use them when you genuinely mean it, and know what you're asking for. π
--force-dependsβ Install/remove despite failed dependencies--force-maintainerβ Overwrite preexisting config files--force-reinstallβ Reinstall package(s)--force-overwriteβ Overwrite files from other package(s)--force-downgradeβ Allow opkg to downgrade packages--force-spaceβ Disable free space checks--force-postinstallβ Execute package postinstall scripts in offline installation mode--force-removeβ Remove package even ifprermscript fails--force-checksumβ Don't fail on checksum mismatches--noactionβ No action - test only--download-onlyβ No action - download only--nodepsβ Do not follow dependencies--install-recommendsβ Install any recommended packages. This flag overrides theno_install_recommendsconfiguration option.--no-install-recommendsβ Do not install any recommended packages--force-removal-of-dependent-packagesβ Remove package and all dependencies--autoremoveβ Remove packages that were installed automatically to satisfy dependencies--host-cache-dirβ Don't place cache in offline root dir--volatile-cacheβ Use volatile cache. Volatile cache will be cleared on exit
π REPORTING BUGS π
Found a bug? Say it with your chest, bestie β report it here:
https://bugzilla.yoctoproject.org/buglist.cgi?product=opkg
Copyright Β© Opkg development team.
Copyright Β© Ipkg development team.
π«Ά and that's the whole page! This was opkg version 0.8.0, dated January 2025, brought to you by the opkg(1) girlies. Go forth and manage your packages, queen. Periodt. πβ¨
π¦ where this page comes from
- nixos 26.05: opkg 0.8.0
- nixpkgs unstable: opkg 0.8.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms