opkg Cheatsheet
#
opkg is a lightweight package management system used primarily for embedded systems. It is used to install, remove, and manage packages.
Basic Commands
#
Command/Option | Example | Description |
---|
opkg update | opkg update | Update the list of available packages |
opkg upgrade | opkg upgrade | Upgrade installed packages |
opkg install | opkg install <package> | Install a package |
opkg remove | opkg remove <package> | Remove a package |
opkg list | opkg list | List all available packages |
Package Management
#
Command/Option | Example | Description |
---|
opkg info | opkg info <package> | Show information about a package |
opkg search | opkg search <package> | Search for a package |
opkg files | opkg files <package> | List files installed by a package |
Configuration
#
Command/Option | Example | Description |
---|
opkg-config | opkg-config | Display opkg configuration settings |
opkg-config --edit | opkg-config --edit | Edit opkg configuration |
Repository Management
#
Command/Option | Example | Description |
---|
opkg repo add | opkg repo add <repo-url> | Add a new repository |
opkg repo remove | opkg repo remove <repo-url> | Remove a repository |
opkg repo list | opkg repo list | List all repositories |
Advanced Commands
#
Command/Option | Example | Description |
---|
opkg list-installed | opkg list-installed | List all installed packages |
opkg whatdepends | opkg whatdepends <package> | Show packages that depend on a specific package |
opkg files <package> | opkg files <package> | List files contained in a package |
This cheatsheet covers essential opkg
commands for managing packages on embedded systems, including package installation, removal, and repository management.