[openwrt/openwrt] base-files: add migration information for APK

LEDE Commits lede-commits at lists.infradead.org
Wed Nov 27 13:09:08 PST 2024


ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/c19c31f7aa6f9952b5d5e1b313eca79d4e7ed59c

commit c19c31f7aa6f9952b5d5e1b313eca79d4e7ed59c
Author: Paul Spooren <mail at aparcar.org>
AuthorDate: Wed Nov 27 17:09:30 2024 +0100

    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 <mail at aparcar.org>
---
 package/base-files/files/etc/profile | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

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 <pkg>     apk add <pkg>       Install a package
+ opkg remove <pkg>      apk del <pkg>       Remove a package
+ opkg upgrade           apk upgrade         Upgrade all packages
+ opkg files <pkg>       apk info -L <pkg>   List package contents
+ opkg list-installed    apk info            List installed packages
+ opkg update            apk update          Update package lists
+ opkg search <pkg>      apk search <pkg>    Search for packages
+ ------------------------------------------------------------------
+
+For more https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet
+
+EOF
+fi




More information about the lede-commits mailing list