Feature #39
apk search needs a filter to only show "best" version found
| Status: | Closed | Start date: | 05/29/2009 | |
|---|---|---|---|---|
| Priority: | Low | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - |
Description
when running apk search every version of package found will be listed. We need a way to show only the package that will be installed. This is needed in order to be able to use the apk serach / apk fetch combo in the alpine.mk to create iso/usb images without having the aports tree.
Associated revisions
History
Updated by Natanael Copa over 2 years ago
- Priority changed from Normal to Low
Updated by Timo Teräs about 1 year ago
Do we still need something like this?
I'm not entirely sure if I want to modify 'apk search' like that. But I'm not really sure how it should be done either.
Updated by Natanael Copa about 1 year ago
I need some way to find out what apk fetch will do.
Currently I do:
get_apk = $(addsuffix .apk,$(shell apk fetch --simulate $(APK_OPTS) $(1) 2>&1 | sed 's:^Downloading :$(ISO_PKGDIR)/:'))
And this:
@for i in `apk fetch $(APK_OPTS) --simulate -R $(INITFS_PKGS) 2>&1\
| sed 's:^Downloading ::; s:-[0-9].*::' | sort | uniq`; do \
apk fetch $(APK_OPTS) --stdout $$i \
| tar -C $(INITFS_DIR) -zx || exit 1; \
done
Which i find somewhat hackish.
Updated by Matt Smith about 1 year ago
There's a similar issue with apk info.
Background: I've just recently updated php to 5.3.5-r2, installed the local APKs, and submitted the APKBUILD changes (so -r2 is not yet available on the repositories).
matt@alpine-dev:~> apk version php Installed: Available: php-5.3.5-r2 > 5.3.5-r1 matt@alpine-dev:~> apk info --webpage php php-5.3.5-r2 webpage: http://www.php.net/ php-5.3.5-r1 webpage: http://www.php.net/
Updated by Timo Teräs 5 months ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 4803444731b55f8dfa489e0763357a451bfcfb3c.
Updated by Natanael Copa 2 months ago
- Status changed from Resolved to Closed