1

Temat: Apk - pierwsze wrażenia

czasem wrzucam snapshota  by  luknąć co nowego  - tym razem APK   
tak to wyglada : ( dla tych co jeszcze nie widzieli )

root@OpenWrt:~# ubus call system board
{
    "kernel": "6.6.63",
    "hostname": "OpenWrt",
    "system": "ARMv7 Processor rev 3 (v7l)",
    "model": "Bananapi BPI-R2",
    "board_name": "bananapi,bpi-r2",
    "rootfs_type": "squashfs",
    "release": {
        "distribution": "OpenWrt",
        "version": "SNAPSHOT",
        "revision": "r28214-5a4eb56a7b",
        "target": "mediatek/mt7623",
        "description": "OpenWrt SNAPSHOT r28214-5a4eb56a7b",
        "builddate": "1732829601"
    }
}
root@OpenWrt:~# opkg update
-ash: opkg: not found
root@OpenWrt:~# 
root@OpenWrt:~# 
root@OpenWrt:~# apk update
fetch https://downloads.openwrt.org/snapshots/targets/mediatek/mt7623/packages/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/base/packages.adb
fetch https://downloads.openwrt.org/snapshots/targets/mediatek/mt7623/kmods/6.6.63-1-6cf207d61805050e191d4ae5ea32d2d8/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/packages/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/routing/packages.adb
fetch https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/telephony/packages.adb
 [https://downloads.openwrt.org/snapshots/targets/mediatek/mt7623/packages/packages.adb]
 [https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/base/packages.adb]
 [https://downloads.openwrt.org/snapshots/targets/mediatek/mt7623/kmods/6.6.63-1-6cf207d61805050e191d4ae5ea32d2d8/packages.adb]
 [https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci/packages.adb]
 [https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/packages/packages.adb]
 [https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/routing/packages.adb]
 [https://downloads.openwrt.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/telephony/packages.adb]
OK: 10655 distinct packages available
root@OpenWrt:~# apk install luci
ERROR: 'install' is not an apk command. See 'apk --help'.
root@OpenWrt:~# apk --help
apk-tools 3.0.0_pre20241113, compiled for armv7.

usage: apk [<OPTIONS>...] COMMAND [<ARGUMENTS>...]

Package installation and removal:
  add        Add or modify constraints in WORLD and commit changes
  del        Remove constraints from WORLD and commit changes

System maintenance:
  fix        Fix, reinstall or upgrade packages without modifying WORLD
  update     Update repository indexes
  upgrade    Install upgrades available from repositories
  cache      Manage the local package cache

Querying package information:
  info       Give detailed information about packages or repositories
  list       List packages matching a pattern or other criteria
  dot        Render dependencies as graphviz graphs
  policy     Show repository policy for packages
  search     Search for packages by name or description

Repository and package maintenance:
  mkndx      Create repository index (v3) file from packages
  mkpkg      Create package (v3)
  index      Create repository index (v2) file from packages
  fetch      Download packages from repositories to a local directory
  manifest   Show checksums of package contents
  extract    Extract package file contents
  verify     Verify package integrity and signature
  adbsign    Sign, resign or recompress v3 packages and indexes

Miscellaneous:
  audit      Audit system for changes
  stats      Show statistics about repositories and installations
  version    Compare package versions or perform tests on version strings
  adbdump    Dump v3 files in textual representation
  adbgen     Generate v3 files from text representation
  convdb     Convert v2 installed database to v3 format
  convndx    Convert v2 indexes to v3 format

This apk has coffee making abilities.
For more information: man 8 apk
root@OpenWrt:~# apk add luci
( 1/27) Installing cgi-io (2022.08.10~901b0f04-r21)
Executing cgi-io-2022.08.10~901b0f04-r21.post-install
( 2/27) Installing liblucihttp0 (2023.03.15~9b5b683f-r1)
Executing liblucihttp0-2023.03.15~9b5b683f-r1.post-install
( 3/27) Installing liblucihttp-ucode (2023.03.15~9b5b683f-r1)
Executing liblucihttp-ucode-2023.03.15~9b5b683f-r1.post-install
( 4/27) Installing rpcd (2024.09.17~9f4b86e7-r1)
Executing rpcd-2024.09.17~9f4b86e7-r1.post-install
( 5/27) Installing rpcd-mod-file (2024.09.17~9f4b86e7-r1)
Executing rpcd-mod-file-2024.09.17~9f4b86e7-r1.post-install
( 6/27) Installing rpcd-mod-luci (20240305-r1)
Executing rpcd-mod-luci-20240305-r1.post-install
( 7/27) Installing rpcd-mod-ucode (2024.09.17~9f4b86e7-r1)
Executing rpcd-mod-ucode-2024.09.17~9f4b86e7-r1.post-install
( 8/27) Installing ucode-mod-html (1)
Executing ucode-mod-html-1.post-install
( 9/27) Installing ucode-mod-math (2024.07.22~b610860d-r3)
Executing ucode-mod-math-2024.07.22~b610860d-r3.post-install
(10/27) Installing luci-base (24.333.66601~bbc4a90)
luci-base-24.333.66601~bbc4a90: installing file to etc/config/luci.apk-new
Executing luci-base-24.333.66601~bbc4a90.post-install
(11/27) Installing luci-app-package-manager (24.333.66601~bbc4a90)
Executing luci-app-package-manager-24.333.66601~bbc4a90.post-install
(12/27) Installing luci-app-firewall (24.333.66601~bbc4a90)
Executing luci-app-firewall-24.333.66601~bbc4a90.post-install
(13/27) Installing libiwinfo-data (2024.10.20~b94f066e-r1)
Executing libiwinfo-data-2024.10.20~b94f066e-r1.post-install
(14/27) Installing libiwinfo20230701 (2024.10.20~b94f066e-r1)
Executing libiwinfo20230701-2024.10.20~b94f066e-r1.post-install
(15/27) Installing rpcd-mod-iwinfo (2024.09.17~9f4b86e7-r1)
Executing rpcd-mod-iwinfo-2024.09.17~9f4b86e7-r1.post-install
(16/27) Installing luci-mod-network (24.333.66601~bbc4a90)
Executing luci-mod-network-24.333.66601~bbc4a90.post-install
(17/27) Installing luci-mod-status (24.333.66601~bbc4a90)
Executing luci-mod-status-24.333.66601~bbc4a90.post-install
(18/27) Installing luci-mod-system (24.333.66601~bbc4a90)
Executing luci-mod-system-24.333.66601~bbc4a90.post-install
(19/27) Installing luci-mod-admin-full (24.333.66601~bbc4a90)
Executing luci-mod-admin-full-24.333.66601~bbc4a90.post-install
(20/27) Installing luci-proto-ipv6 (24.333.66601~bbc4a90)
Executing luci-proto-ipv6-24.333.66601~bbc4a90.post-install
(21/27) Installing luci-proto-ppp (24.333.66601~bbc4a90)
Executing luci-proto-ppp-24.333.66601~bbc4a90.post-install
(22/27) Installing luci-theme-bootstrap (24.333.66601~bbc4a90)
Executing luci-theme-bootstrap-24.333.66601~bbc4a90.post-install
/luci-static/bootstrap
/luci-static/bootstrap-dark
/luci-static/bootstrap-light
(23/27) Installing rpcd-mod-rrdns (20170710)
Executing rpcd-mod-rrdns-20170710.post-install
(24/27) Installing uhttpd (2023.06.25~34a8a74d-r4)
uhttpd-2023.06.25~34a8a74d-r4: installing file to etc/config/uhttpd.apk-new
Executing uhttpd-2023.06.25~34a8a74d-r4.post-install
4+0 records in
4+0 records out
(25/27) Installing uhttpd-mod-ubus (2023.06.25~34a8a74d-r4)
Executing uhttpd-mod-ubus-2023.06.25~34a8a74d-r4.post-install
4+0 records in
4+0 records out
(26/27) Installing luci-light (24.333.66601~bbc4a90)
Executing luci-light-24.333.66601~bbc4a90.post-install
(27/27) Installing luci (24.333.66601~bbc4a90)
Executing luci-24.333.66601~bbc4a90.post-install
OK: 11 MiB in 141 packages
root@OpenWrt:~# 

**************************

root@OpenWrt:~# apk list | grep opkg
root@OpenWrt:~# 
root@OpenWrt:~# 
root@OpenWrt:~# apk search opkg
luci-app-package-manager-24.333.66601~bbc4a90
root@OpenWrt:~# 


a jak wylistować listę zainstalowanych pakietów  ?

2

Odp: Apk - pierwsze wrażenia

cat /etc/apk/world

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Apk - pierwsze wrażenia

działa  , ale " egzotycznie "  w helpie tego nie ma

root@OpenWrt:~# cat /etc/apk/world
apk-mbedtls
base-files
busybox
ca-bundle
dnsmasq
dropbear
e2fsprogs
eip197-mini-firmware
firewall4
fitblk
fstools
fwtool
getrandom
jansson4
jshn
jsonfilter
kernel
kmod-ata-ahci
kmod-crypto-acompress
kmod-crypto-aead
kmod-crypto-authenc
kmod-crypto-crc32c
kmod-crypto-des
kmod-crypto-hash
kmod-crypto-hmac
kmod-crypto-hw-safexcel
kmod-crypto-manager
kmod-crypto-md5
kmod-crypto-null
kmod-crypto-sha1
kmod-crypto-sha256
kmod-crypto-sha512
kmod-gpio-button-hotplug
kmod-leds-gpio
kmod-lib-crc-ccitt
kmod-lib-crc32c
kmod-lib-lzo
kmod-nf-conntrack
kmod-nf-conntrack6
kmod-nf-flow
kmod-nf-log
kmod-nf-log6
kmod-nf-nat
kmod-nf-reject
kmod-nf-reject6
kmod-nfnetlink
kmod-nft-core
kmod-nft-fib
kmod-nft-nat
kmod-nft-offload
kmod-ppp
kmod-pppoe
kmod-pppox
kmod-slhc
kmod-usb3
libblobmsg-json20240329
libc
libgcc1
libjson-c5
libjson-script20240329
libmbedtls21
libmnl0
libnftnl11
libnl-tiny1
libubox20240329
libubus20241020
libuci20130104
libuclient20201210
libucode20230711
libudebug
libustream-mbedtls20201210
logd
luci
luci-i18n-base-pl
mkf2fs
mtd
netifd
nftables-json
odhcp6c
odhcpd-ipv6only
openwrt-keyring
ppp
ppp-mod-pppoe
procd
procd-seccomp
procd-ujail
ubi-utils
uboot-envtools
ubox
ubus
ubusd
uci
uclient-fetch
ucode
ucode-mod-fs
ucode-mod-ubus
ucode-mod-uci
urandom-seed
urngd
usign
zlib
root@OpenWrt:~# 

4

Odp: Apk - pierwsze wrażenia

Bardzo kompleksowo rozwiązuje zależności wystarczy wpisać  nazwę firmware a apk samo instaluje dociaga wszystko tak by uruchomic dany sprzet - przynajmniej z luci  .  opkg  chyba instalowało paczki po kolei  osobno firmware , osobno kmody , tak mi sie wydaje

5

Odp: Apk - pierwsze wrażenia

Jak nazwę firmware? Normalnie sa paczki z zależności, ściąga to co zależy od siebie, tak po prostu.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Apk - pierwsze wrażenia

Stworzyłem nowy temat aby wymieniać się informacjami o SNAPSHOT:
https://eko.one.pl/forum/viewtopic.php? … 33#p309733

Zapraszam do wymiany informacji na ten temat.  Używam SNAPSHOT namiętnie od dłuższego czasu.

Korzystam z: MF286D; Kernel 6.12.60 r32225 i AW1000; Kernel 6.12.92 r34806
Wypełnij ankietę. Poprawiamy tłumaczenie LuCI. Szczegóły w tym poście

7 (edytowany przez jaketherake 2024-11-29 21:06:08)

Odp: Apk - pierwsze wrażenia

Pojawił się podstawowy pomocniki do APK: https://openwrt.org/docs/guide-user/add … cheatsheet

8

Odp: Apk - pierwsze wrażenia

A to już było. Co więcej - podobny help masz (lub będziesz miał, bo to ostatnio zrobili) po zalogowaniu przez ssh.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.