Hi,
with opkg I could use that for looking about package, what would be the new one with apk?
thanks
ie: opkg list-installed | cut -f 1 -d ' ' | grep dnsmasq | xargs opkg info
I know the first part, apk list --installed
Hi,
with opkg I could use that for looking about package, what would be the new one with apk?
thanks
ie: opkg list-installed | cut -f 1 -d ' ' | grep dnsmasq | xargs opkg info
I know the first part, apk list --installed
Mind to make documentation request to provide option translations between two?
First 3 commands can be pulled from ubus.
Is this what you're looking for?
$ apk list --installed --manifest | cut -f 1 -d ' ' | grep dnsmasq | xargs apk info
dnsmasq-full-2.90-r3 description:
It is intended to provide coupled DNS and DHCP service to a LAN. This is a fully configurable variant with DHCPv4, DHCPv6, DNSSEC, Authoritative DNS and nftset, Conntrack support & NO_ID enabled by default.
dnsmasq-full-2.90-r3 webpage:
http://www.thekelleys.org.uk/dnsmasq/
dnsmasq-full-2.90-r3 installed size:
468 KiB
dnsmasq-full-2.90-r3 description:
It is intended to provide coupled DNS and DHCP service to a LAN. This is a fully configurable variant with DHCPv4, DHCPv6, DNSSEC, Authoritative DNS and nftset, Conntrack support & NO_ID enabled by default.
dnsmasq-full-2.90-r3 webpage:
http://www.thekelleys.org.uk/dnsmasq/
dnsmasq-full-2.90-r3 installed size:
468 KiB
Info options:
-a, --all List all information known about the package
the -a
info option returns even more info !
I noticed when I run this, it returns my installed dnsmasq-full
package info, so it finds any package that contains the dnsmasq
string.
I tweaked it to return a strict search for the package required...
e.g. search for dnsmasq
finds no result ...
$ [ "$(apk list -I --manifest | cut -d' ' -f1 | grep -Fcx "dnsmasq")" = "1" ] && apk info -a "dnsmasq"
$ [ $(echo "$?" = "1") ] && "echo dnsmasq package not installed"
dnsmasq package not installed
then for dnsmasq-full
...
$ [ "$(apk list -I --manifest | cut -d' ' -f1 | grep -Fcx "dnsmasq-full")" = "1" ] && apk info -a "dnsmasq-full"
dnsmasq-full-2.90-r3 description:
It is intended to provide coupled DNS and DHCP service to a LAN. This is a fully configurable variant with DHCPv4, DHCPv6, DNSSEC, Authoritative DNS and nftset, Conntrack support & NO_ID enabled by default.
dnsmasq-full-2.90-r3 webpage:
http://www.thekelleys.org.uk/dnsmasq/
dnsmasq-full-2.90-r3 installed size:
492 KiB
dnsmasq-full-2.90-r3 depends on:
libc
libnetfilter-conntrack3
libnettle8
libubus20241020
nftables-json
dnsmasq-full-2.90-r3 provides:
dnsmasq
dnsmasq-full-2.90-r3 is required by:
dnsmasq-full-2.90-r3 contains:
etc/dnsmasq.conf
etc/config/dhcp
etc/hotplug.d/ntp/25-dnsmasqsec
etc/init.d/dnsmasq
etc/uci-defaults/50-dnsmasq-migrate-ipset.sh
etc/uci-defaults/50-dnsmasq-migrate-resolv-conf-auto.sh
lib/apk/packages/dnsmasq-full.conffiles
lib/apk/packages/dnsmasq-full.conffiles_static
lib/apk/packages/dnsmasq-full.list
lib/apk/packages/dnsmasq-full.rusers
lib/upgrade/keep.d/dnsmasq-full
usr/lib/dnsmasq/dhcp-script.sh
usr/sbin/dnsmasq
usr/share/acl.d/dnsmasq_acl.json
usr/share/dnsmasq/dhcpbogushostname.conf
usr/share/dnsmasq/rfc6761.conf
usr/share/dnsmasq/trust-anchors.conf
dnsmasq-full-2.90-r3 triggers:
dnsmasq-full-2.90-r3 has auto-install rule:
dnsmasq-full-2.90-r3 affects auto-installation of:
dnsmasq-full-2.90-r3 replaces:
dnsmasq-full-2.90-r3 license:
GPL-2.0
$ [ $(echo "$?" = "1") ] && "echo dnsmasq-full package not installed"
$
Exactly thanks both for your infos.
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.