Busybox - 如何为 opkg 构建包

Busybox - 如何为 opkg 构建包

我知道如何在 Ubuntu 上构建 deb 包,其中包含 dpkg 的目录结构、控制文件等。 opkg 也一样吗?

  1. 如何为 opkg 构建包?
  2. 我可以直接在 Busybox 上生成软件包吗?还是需要其他 Linux(例如 Ubuntu)?

奥普克 正在工作,但没有构建选项。

我正在这个 Busybox 上运行:

BusyBox v1.23.2 (2017-06-15 11:01:48 CEST) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2012.
Licensed under GPLv2. See source distribution for detailed copyright notices.

Usage: busybox [function [arguments]...]
or: busybox --list
or: function [arguments]...

    BusyBox is a multi-call binary that combines many common Unix
    utilities into a single executable.  Most people will create a
    link to busybox for each function they wish to use and BusyBox
    will act like whatever it was invoked as.

Currently defined functions:
    [, [[, addgroup, adduser, ar, arp, ash, awk, base64, basename, bash, bbconfig, brctl, bunzip2, bzcat, bzip2,
    cat, chattr, chgrp, chmod, chown, chroot, chrt, chvt, clear, cmp, cp, cpio, crond, cut, date, dc, dd,
    deallocvt, delgroup, deluser, devmem, df, diff, dirname, dmesg, dnsdomainname, dos2unix, du, dumpkmap, echo,
    egrep, eject, env, ether-wake, expr, false, fatattr, fbset, fbsplash, fdisk, fgrep, find, flock, fstrim,
    getopt, getty, grep, groups, gunzip, gzip, hd, head, hexdump, hostname, id, ifconfig, ifdown, ifup, inetd,
    inotifyd, insmod, ionice, iostat, ip, kbd_mode, klogd, less, ln, loadfont, loadkmap, logger, logname, logread,
    losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat, md5sum, microcom, mkdir, mkdosfs, mkfifo, mkfs.vfat,
    mknod, mkswap, mktemp, modinfo, modprobe, more, mount, mpstat, mv, nameif, nbd-client, nc, netstat, nice,
    nmeter, nohup, nslookup, ntpd, od, openvt, patch, pidof, powertop, printf, pwd, rdate, rdev, readahead,
    readlink, readprofile, realpath, renice, reset, rm, rmdir, rmmod, route, run-parts, sed, sendmail, seq,
    setconsole, setfont, setkeycodes, setlogcons, setserial, setsid, sh, sha1sum, sha256sum, sha3sum, sha512sum,
    showkey, shuf, sleep, smemcap, sort, start-stop-daemon, strings, stty, sulogin, swapoff, swapon, switch_root,
    sync, syslogd, tail, tar, taskset, tee, telnet, telnetd, test, tftp, time, timeout, touch, tr, true, tty,
    tunctl, tune2fs, udhcpc, umount, uname, uniq, unix2dos, unlink, unlzma, unxz, unzip, users, usleep, uudecode,
    uuencode, vconfig, vi, volname, wc, wget, which, who, whoami, whois, xargs, xzcat, yes, zcat

答案1

Busybox 是一组简单的工具,并且没有包管理功能。您应该指定您运行 busybox 的系统,它可能包含一个。

相关内容