From: Paul Spooren Date: Wed, 27 Nov 2024 16:09:30 +0000 (+0100) Subject: base-files: add migration information for APK X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c19c31f7aa6f9952b5d5e1b313eca79d4e7ed59c;p=openwrt%2Fopenwrt.git base-files: add migration information for APK If the `apk` package manager is installed, show a table of common commands to deal with the system. Signed-off-by: Paul Spooren --- diff --git a/package/base-files/files/etc/profile b/package/base-files/files/etc/profile index 76b149b9fa..e892a5a605 100644 --- a/package/base-files/files/etc/profile +++ b/package/base-files/files/etc/profile @@ -38,3 +38,24 @@ in order to prevent unauthorized SSH logins. -------------------------------------------------- EOF fi + +if [ -x /usr/bin/apk ]; then +cat << EOF + + OpenWrt recently switched to the "apk" package manger! + + OPKG Command APK Equivalent Description + ------------------------------------------------------------------ + opkg install apk add Install a package + opkg remove apk del Remove a package + opkg upgrade apk upgrade Upgrade all packages + opkg files apk info -L List package contents + opkg list-installed apk info List installed packages + opkg update apk update Update package lists + opkg search apk search Search for packages + ------------------------------------------------------------------ + +For more https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet + +EOF +fi