|
本帖最后由 角色 于 2025-8-17 20:55 编辑
在OpenWrt已经很快使用apk去代替opkg[1,2,3]。
- login as: root
- BusyBox v1.37.0 (2025-08-11 21:06:24 UTC) built-in shell (ash)
- _______ ________ __
- | |.-----.-----.-----.| | | |.----.| |_
- | - || _ | -__| || | | || _|| _|
- |_______|| __|_____|__|__||________||__| |____|
- |__| W I R E L E S S F R E E D O M
- -----------------------------------------------------
- OpenWrt SNAPSHOT, r30758-3ded6d2716
- -----------------------------------------------------
- === WARNING! =====================================
- There is no root password defined on this device!
- Use the "passwd" command to set up a new password
- in order to prevent unauthorized SSH logins.
- --------------------------------------------------
- OpenWrt recently switched to the "apk" package manager!
- 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 [url]https://openwrt.org/docs/guide-user/additional-software/opkg-to-apk-cheatsheet[/url]
- root@OpenWrt:~#
复制代码
参考:
[1] https://openwrt.org/docs/guide-u ... g-to-apk-cheatsheet
[2] https://www.openwrt.pro/post-682.html
[3] https://wiki.alpinelinux.org/wiki/Alpine_Package_Keeper
|
|