summaryrefslogtreecommitdiffstats
path: root/man
AgeCommit message (Collapse)Author
2019-10-30opkg: add verify optionAlejandro del Castillo
Add verify option to verify the current md5sum of installed files vs the md5sum of the file at install time. The check is mainly aimed as an integrity check, to detect which files has been modified. It is not meant to be a secure way to determine if a system has been tampered with. The verify option relies on checksums stored on a metadata file (md5sums) which needs to be packaged with the rest of the control files on the control tarball. The file has key/value pairs with md5sum/filepath data. The file can be generated at build time (before running opkg-build, if that's the tool being used). An example command that can generate the md5sums file: find . -type f -regex '.*?debian-binary.*' ! -regex '.*?CONTROL.*' -printf '%P ' | xargs md5sum > CONTROL/md5sums This file is optional, if present it will be used with the --verify option, if not, the operation will be a no-op. This command is largely model after the dpkg -V option. Bugzilla #7649 Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2019-02-04libopkg: add --add-ignore-recommends optionAlejandro del Castillo
Add option to ignore specific recommended packages. On the libsolv backed, this feature will only work on libsolv version > 0.7.2 [1]. [1] https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_openSUSE_libsolv_issues_254&d=DwIBaQ&c=I_0YwoKy7z5LMTVdyO6YCiE2uzI1jjZZuIPelcSjixA&r=wNcrL2akRn6jfxhHaKavUrJB_C9JAMXtynjLd8ZzgXQ&m=GObNHzFJpWpf_PripIrf-K2RhsktYdAUEieAJexXOKw&s=3G-meChUqClFggFPqsrAxIZBfLnRKIHm62Uuy1X6nQQ&e= Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-12-26opkg: clean and consolidate helpAlejandro del Castillo
The man page was out of sync with the command line help. Make help consistent. Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-11-30libopkg: Add --short-description command line argument.Dan Mondrik
The commands 'info' and 'status' now support the --short-description flag to display only the first line of the Description. This allows client parsing of the results to be simpler and faster. Signed-off-by: Dan Mondrik <dan.mondrik@ni.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-11-30libopkg: add --fields command line argumentDan Mondrik
The commands 'info' and 'status' now support the --fields command line argument with a comma delimited list of fields the user wants displayed. This allows client parsing of the results to be simpler and faster. Signed-off-by: Dan Mondrik <dan.mondrik@ni.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-12-16opkg: Extend 'opkg list' command to optionally display package sizeFlorin Gherendi
'opkg list' command only displays the available packages' name, version and description. It would be useful to also see the approximate size of the available package. This patch extends "opkg list" command with "--size" to optionally show also the *.ipk size. * Default behaviour is to list the available packages as earlier: "name - version - description" * with "--size" the output of is "name - version - size - description". Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46980 3c298f89-4303-0410-b956-a3cf2f4a3e73 The patch was imported from OpenWRT git server (git://git.openwrt.org/openwrt.git) as of commit id 97e7e2bae9beced5b079d352035a5e914e9715e2 Some modifications were made to match opkg version 0.3.x: libopkg/opkg_cmd.c: changes in patch code: in static void print_pkg(pkg_t * pkg), instead of: + if (conf->size) + printf(" - %lu", pkg->size); use: + if (opkg_config->size) { + if(pkg->state_status == SS_INSTALLED || pkg->state_status == SS_UNPACKED) + printf(" - %lu", pkg->installed_size); + else + printf(" - %lu", pkg->size); + } man/opkg.1.in: added description for --size switch src/opkg.c: is patched in version 0.3.x instead of src/opkg-cl.c in version 0.1.8 Signed-off-by: Florin Gherendi <floring2502@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-12-16opkg: expose lists_dir option as command line argumentFlorin Gherendi
Expose the "lists_dir" configuration file option as command line switch so that we can override it for the Image Builder environment. Also add a more standard PKG_MAINTAINER variable while touching the Makefile. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46911 3c298f89-4303-0410-b956-a3cf2f4a3e73 The patch was imported from OpenWRT git server (git://git.openwrt.org/openwrt.git) as of commit id 91a4816bcdff36a903a69e8e2659c83c6a42e490. Modifications for opkg version 0.3.x: src/opkg.c is patched with the same code as src/opkg-cl.c in the 0.1.8 version man/opkg.1.in - add description for the --lists-dir switch Signed-off-by: Florin Gherendi <floring2502@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-12-16opkg: introduce a --force-checksum cmdline flag to be ale to ignore ↵Florin Gherendi
mismatching md5sums Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40766 3c298f89-4303-0410-b956-a3cf2f4a3e73 The patch was imported from OpenWRT git server (git://git.openwrt.org/openwrt.git) as of commit id 37a0e124d1c685f0503b7b96351e29548fbe71cc. Parts have been re-written to match opkg version 0.3.x: libopkg/opkg_install.c is no longer patched; error messages for md5sum mismatch no longer exist in this version of opkg. Patching libopkg/pkg.c instead, for ignoring checksum mismatch (new code) patching information for src/opkg-cl.c (version 0.1.8) used now to patch src/opkg.c (the new program source) man/opkg.1.in - add description for the "--force-checksum" command line switch. man/opkg.5.in - add description for the "force_checksum" config option. Signed-off-by: Florin Gherendi <floring2502@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-12-16opkg: introduce "find" command which searches package names and descriptions ↵Florin Gherendi
(e.g. opkg -i find "*autoconfig*") git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34202 3c298f89-4303-0410-b956-a3cf2f4a3e73 Based on one of a series of patches imported from OpenWRT git server (git://git.openwrt.org/openwrt.git) as of commit id d6a1959e5168377d5358d257ebc2afe6abdf7eb8, author jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>, not signed off. Modifications to match opkg version 0.3.x: libopkg/opkg_cmd.c: static int opkg_list_find_cmd(int argc, char **argv, int use_desc): occurrences of conf->nocase replaced with 0 static int opkg_list_installed_cmd(int argc, char **argv): {"find", 1, (opkg_cmd_fun_t)opkg_find_cmd, PFM_SOURCE} replaced with {"find", 1, (opkg_cmd_fun_t) opkg_find_cmd, PFM_DESCRIPTION | PFM_SOURCE} man/opkg.1.in - add description for the "find" command patching information from src/opkg-cl.c (initial) used for src/opkg.c (the new program source) Signed-off-by: Florin Gherendi <floring2502@gmail.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-08-10libopkg/opkg_gpg.c: Fix to gpg signature verification.Bryan Krause
Previously the GPG check would simply perform a digest against a give repo/package from the signature file. At no point would it verify the package's signature was signed properly. This fix verifies the package/repository not only checks the digest but that the package is also signed by a trusted source. Signed-off-by: Bryan Krause <bryan.krause@baesystems.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-06-14opkg.conf.5: remove gpg_dir and gpg_trust_level helpAlejandro del Castillo
Options implementation is not upstream yet. Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2016-06-01Creates a man-page for the opkg.conf file under Section 5.0.Bryan Krause
Signed-off-by: Bryan Krause <bryan.krause@baesystems.com> Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2014-06-05Cleanup trailing whitespaceEmmanuel Deloget
The whitespaces has been removed automatically using the following command line: grep --exclude-dir .git -rHn '[[:space:]]$' | \ awk -F: '{ print $1 }' | sort | uniq | \ grep -v COPYING | \ while read f; do sed -i 's/[[:space:]]*$//g' $f; done The COPYING file has been spared because (a) it's a GNU file, not an opkg file and (b) the ^L control chars are in the [[:space:]] character list (and we don't want them to disapear). Changes to ChangeLog.ipkg were dropped as they are unnecessary for such a legacy file. Signed-off-by: Emmanuel Deloget <logout@free.fr> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2014-06-04Rename 'opkg-cl' to 'opkg'Emmanuel Deloget
The CLI program name is now the same as the product name (opkg) instead of an explicit yet less common name (opkg-cl). This limits the confusion to a bare minimum. This commit fixes issue 135. Signed-off-by: Emmanuel Deloget <logout@free.fr> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-12-20opkg-cl: Arguments are globs not regexpsPaul Barker
This patch fixes issue 107. The arguments taken by opkg are treated as shell-style globbing patterns, not as regular expressions. Both the manual page and the output of 'opkg --help' are changed to describe things correctly. Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2013-10-28opkg-key: don't install unless compiled with GPG supportpaul.betafive@gmail.com
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> git-svn-id: http://opkg.googlecode.com/svn/trunk@729 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-10-05Implement "list-changed-conffiles" command - based on patch by Yann Lopez ↵google@wwsnet.net
<yann.lopez@gmail.com>. git-svn-id: http://opkg.googlecode.com/svn/trunk@576 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-09-13update manpages to reflect r559 and r562google@wwsnet.net
git-svn-id: http://opkg.googlecode.com/svn/trunk@563 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-08-10And remove the autogenerated files...graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@549 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
2010-08-10Add man pages for opkg-cl and opkg-keys. From David Bachelart (Issue #56).graham.gower
git-svn-id: http://opkg.googlecode.com/svn/trunk@547 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358