Code Monkey home page Code Monkey logo

apk-file's Introduction

apk-file

make-all make-image GoDoc Github All Releases

Search apk packages via the command line.

Basically apt-file but for alpine.

Table of Contents

Installation

Binaries

For installation instructions from binaries please visit the Releases Page.

Via Go

$ go get github.com/genuinetools/apk-file

Usage

$ apk-file posix.so
FILE                                                       PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/lib/lua/5.1/posix.so                                  lua5.1-posix        edge                main                armhf
/usr/lib/lua/5.3/posix.so                                  lua5.3-posix        edge                main                armhf
/usr/lib/lua/5.2/posix.so                                  lua5.2-posix        edge                main                armhf
/usr/lib/lua/5.1/posix.so                                  lua5.1-posix        edge                main                x86_64
/usr/lib/lua/5.2/posix.so                                  lua5.2-posix        edge                main                x86_64
/usr/lib/lua/5.3/posix.so                                  lua5.3-posix        edge                main                x86_64
/usr/lib/lua/5.3/posix.so                                  lua5.3-posix        edge                main                x86
/usr/lib/lua/5.1/posix.so                                  lua5.1-posix        edge                main                x86
/usr/lib/lua/5.2/posix.so                                  lua5.2-posix        edge                main                x86
/usr/lib/python2.7/site-packages/uptime/_posix.so          py-uptime           edge                testing             armhf
/usr/lib/python2.7/site-packages/uptime/_posix.so          py-uptime           edge                testing             x86_64
/usr/lib/python2.7/site-packages/uptime/_posix.so          py-uptime           edge                testing             x86
/usr/lib/python2.7/site-packages/psutil/_psutil_posix.so   py-psutil           edge                community           armhf
/usr/lib/python2.7/site-packages/psutil/_psutil_posix.so   py-psutil           edge                community           x86_64
/usr/lib/python2.7/site-packages/psutil/_psutil_posix.so   py-psutil           edge                community           x86
/usr/lib/lua/5.3/rex_posix.so.2.8                          lua5.3-rex-posix    edge                main                armhf
/usr/lib/lua/5.3/rex_posix.so                              lua5.3-rex-posix    edge                main                armhf
/usr/lib/lua/5.2/rex_posix.so.2.8                          lua5.2-rex-posix    edge                main                armhf
/usr/lib/lua/5.2/rex_posix.so                              lua5.2-rex-posix    edge                main                armhf
/usr/lib/lua/5.1/rex_posix.so.2.8                          lua5.1-rex-posix    edge                main                armhf
/usr/lib/lua/5.1/rex_posix.so                              lua5.1-rex-posix    edge                main                armhf
/usr/lib/lua/5.2/rex_posix.so                              lua5.2-rex-posix    edge                main                x86_64
/usr/lib/lua/5.2/rex_posix.so.2.8                          lua5.2-rex-posix    edge                main                x86_64
/usr/lib/lua/5.3/rex_posix.so                              lua5.3-rex-posix    edge                main                x86_64
/usr/lib/lua/5.3/rex_posix.so.2.8                          lua5.3-rex-posix    edge                main                x86_64
/usr/lib/lua/5.1/rex_posix.so                              lua5.1-rex-posix    edge                main                x86_64
/usr/lib/lua/5.1/rex_posix.so.2.8                          lua5.1-rex-posix    edge                main                x86_64
/usr/lib/lua/5.2/rex_posix.so                              lua5.2-rex-posix    edge                main                x86
/usr/lib/lua/5.2/rex_posix.so.2.8                          lua5.2-rex-posix    edge                main                x86
/usr/lib/lua/5.3/rex_posix.so                              lua5.3-rex-posix    edge                main                x86
/usr/lib/lua/5.3/rex_posix.so.2.8                          lua5.3-rex-posix    edge                main                x86
/usr/lib/lua/5.1/rex_posix.so                              lua5.1-rex-posix    edge                main                x86
/usr/lib/lua/5.1/rex_posix.so.2.8                          lua5.1-rex-posix    edge                main                x86
/usr/lib/python2.7/site-packages/_psutil_posix.so          py-psutil           v3.3                community           armhf
/usr/lib/python2.7/site-packages/_psutil_posix.so          py-psutil           v3.3                community           x86_64
/usr/lib/python2.7/site-packages/_psutil_posix.so          py-psutil           v3.3                community           x86
/usr/lib/lua/5.3/rex_posix.so                              lua5.3-rex-posix    v3.3                main                armhf
/usr/lib/lua/5.3/rex_posix.so.2.8                          lua5.3-rex-posix    v3.3                main                armhf
/usr/lib/lua/5.2/rex_posix.so                              lua5.2-rex-posix    v3.3                main                armhf
/usr/lib/lua/5.2/rex_posix.so.2.8                          lua5.2-rex-posix    v3.3                main                armhf
/usr/lib/lua/5.1/rex_posix.so                              lua5.1-rex-posix    v3.3                main                armhf
/usr/lib/lua/5.1/rex_posix.so.2.8                          lua5.1-rex-posix    v3.3                main                armhf
/usr/lib/lua/5.1/posix.so                                  lua5.1-posix        v3.3                main                armhf
/usr/lib/lua/5.2/posix.so                                  lua5.2-posix        v3.3                main                armhf
/usr/lib/lua/5.3/posix.so                                  lua5.3-posix        v3.3                main                armhf
/usr/lib/lua/5.2/rex_posix.so                              lua5.2-rex-posix    v3.3                main                x86_64
/usr/lib/lua/5.2/rex_posix.so.2.8                          lua5.2-rex-posix    v3.3                main                x86_64
/usr/lib/lua/5.3/posix.so                                  lua5.3-posix        v3.3                main                x86_64
/usr/lib/lua/5.3/rex_posix.so                              lua5.3-rex-posix    v3.3                main                x86_64
/usr/lib/lua/5.3/rex_posix.so.2.8                          lua5.3-rex-posix    v3.3                main                x86_64
$ apk-file bin/file
FILE                                                                  PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/lib/erlang/lib/gs-1.6/examples/ebin/file_dialog.beam             erlang-gs           edge                community           armhf
/usr/lib/erlang/lib/kernel-4.2/ebin/file.beam                         erlang-kernel       edge                community           armhf
/usr/lib/erlang/lib/kernel-4.2/ebin/file_io_server.beam               erlang-kernel       edge                community           armhf
/usr/lib/erlang/lib/kernel-4.2/ebin/file_server.beam                  erlang-kernel       edge                community           armhf
/usr/lib/erlang/lib/stdlib-2.8/ebin/filelib.beam                      erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/stdlib-2.8/ebin/file_sorter.beam                  erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/stdlib-2.8/ebin/filename.beam                     erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/gs-1.6/examples/ebin/file_dialog.beam             erlang-gs           edge                community           x86
/usr/lib/erlang/lib/kernel-4.2/ebin/file.beam                         erlang-kernel       edge                community           x86
/usr/lib/erlang/lib/kernel-4.2/ebin/file_server.beam                  erlang-kernel       edge                community           x86
/usr/lib/erlang/lib/kernel-4.2/ebin/file_io_server.beam               erlang-kernel       edge                community           x86
/usr/lib/erlang/lib/stdlib-2.8/ebin/file_sorter.beam                  erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/stdlib-2.8/ebin/filename.beam                     erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/stdlib-2.8/ebin/filelib.beam                      erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/gs-1.6/examples/ebin/file_dialog.beam             erlang-gs           edge                community           x86_64
/usr/lib/erlang/lib/kernel-4.2/ebin/file.beam                         erlang-kernel       edge                community           x86_64
/usr/lib/erlang/lib/kernel-4.2/ebin/file_io_server.beam               erlang-kernel       edge                community           x86_64
/usr/lib/erlang/lib/kernel-4.2/ebin/file_server.beam                  erlang-kernel       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-2.8/ebin/filename.beam                     erlang-stdlib       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-2.8/ebin/filelib.beam                      erlang-stdlib       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-2.8/ebin/file_sorter.beam                  erlang-stdlib       edge                community           x86_64
/usr/bin/file                                                         file                edge                main                armhf
/usr/bin/file                                                         file                edge                main                x86_64
/usr/bin/file                                                         file                edge                main                x86
/usr/bin/fileinfo                                                     leptonica           edge                testing             armhf
/usr/lib/erlang/lib/gs-1.5.16/examples/ebin/file_dialog.beam          erlang17-gs         edge                testing             armhf
/usr/lib/ruby/gems/2.2.0/gems/hoe-3.13.1/template/bin/file_name.erb   ruby-hoe            edge                testing             armhf
/usr/lib/erlang/lib/stdlib-2.4/ebin/filename.beam                     erlang17-stdlib     edge                testing             armhf
/usr/lib/erlang/lib/stdlib-2.4/ebin/file_sorter.beam                  erlang17-stdlib     edge                testing             armhf
/usr/lib/erlang/lib/stdlib-2.4/ebin/filelib.beam                      erlang17-stdlib     edge                testing             armhf
/usr/lib/erlang/lib/kernel-3.2/ebin/file.beam                         erlang17-kernel     edge                testing             armhf
/usr/lib/erlang/lib/kernel-3.2/ebin/file_server.beam                  erlang17-kernel     edge                testing             armhf
/usr/lib/erlang/lib/kernel-3.2/ebin/file_io_server.beam               erlang17-kernel     edge                testing             armhf
/usr/lib/erlang/lib/kernel-3.2/ebin/file.beam                         erlang17-kernel     edge                testing             x86_64
/usr/lib/erlang/lib/kernel-3.2/ebin/file_io_server.beam               erlang17-kernel     edge                testing             x86_64
/usr/lib/erlang/lib/kernel-3.2/ebin/file_server.beam                  erlang17-kernel     edge                testing             x86_64
/usr/bin/fileinfo                                                     leptonica           edge                testing             x86_64
/usr/lib/erlang/lib/gs-1.5.16/examples/ebin/file_dialog.beam          erlang17-gs         edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-2.4/ebin/filename.beam                     erlang17-stdlib     edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-2.4/ebin/filelib.beam                      erlang17-stdlib     edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-2.4/ebin/file_sorter.beam                  erlang17-stdlib     edge                testing             x86_64
/usr/lib/erlang/lib/kernel-3.2/ebin/file.beam                         erlang17-kernel     edge                testing             x86
/usr/lib/erlang/lib/kernel-3.2/ebin/file_server.beam                  erlang17-kernel     edge                testing             x86
/usr/lib/erlang/lib/kernel-3.2/ebin/file_io_server.beam               erlang17-kernel     edge                testing             x86
/usr/bin/fileinfo                                                     leptonica           edge                testing             x86
/usr/lib/erlang/lib/gs-1.5.16/examples/ebin/file_dialog.beam          erlang17-gs         edge                testing             x86
/usr/lib/erlang/lib/stdlib-2.4/ebin/file_sorter.beam                  erlang17-stdlib     edge                testing             x86
/usr/lib/erlang/lib/stdlib-2.4/ebin/filename.beam                     erlang17-stdlib     edge                testing             x86
/usr/lib/erlang/lib/stdlib-2.4/ebin/filelib.beam                      erlang17-stdlib     edge                testing             x86
/usr/share/doc/swish-e/examples/prog-bin/file.pl                      swish-e-doc         edge                main                armhf

apk-file's People

Contributors

azillion avatar drebrez avatar github-actions[bot] avatar jessfraz avatar marcosnils avatar toc-me[bot] avatar zchee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

apk-file's Issues

Add test for HTML parsing

What about adding a test for the HTML parsing in case that the search results page change?.

I was thinking that we can make the test actually hit https://pkgs.alpinelinux.org/contents to retrieve the page but that would require tests to run with a working inet connection.

Otherwise, we can just hardcode the html so we can test the parsing code.

Thoughts?

๐Ÿ˜„

Propose Logo

Hi. I'm a graphic designer. I wanted to contribute to your project for free, i'm waiting your feedback. Thanks .. Best Regard. Mirza Zulfan.

tables aren't drawn correctly?

for each row, the repo and arch fields (regardless of how long the row is) seem to move to their own newline. I've tested that in a terminal emulator and tty for an ssh session, and in a chroot. In all cases it's the same behaviour.

arch option returning incorrect results

Running without -arch:

> apk-file bin/dig
FILE                                                             PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/bin/dig                                                     bind-tools          edge                main                aarch64
/usr/bin/dig                                                     bind-tools          edge                main                armhf
/usr/bin/dig                                                     bind-tools          edge                main                ppc64le
/usr/bin/dig                                                     bind-tools          edge                main                s390x
/usr/bin/dig                                                     bind-tools          edge                main                armv7
/usr/bin/dig                                                     bind-tools          edge                main                x86_64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86_64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86
/usr/sbin/digest-service                                         heimdal-libs        edge                main                aarch64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                armhf
/usr/sbin/digest-service                                         heimdal-libs        edge                main                ppc64le
/usr/sbin/digest-service                                         heimdal-libs        edge                main                s390x
/usr/sbin/digest-service                                         heimdal-libs        edge                main                armv7
/usr/bin/dighosts                                                3proxy              edge                testing             x86_64
/usr/bin/dighosts                                                3proxy              edge                testing             aarch64
/usr/bin/dighosts                                                3proxy              edge                testing             armhf
/usr/bin/dighosts                                                3proxy              edge                testing             armv7
/usr/bin/dighosts                                                3proxy              edge                testing             x86
/usr/bin/dighosts                                                3proxy              edge                testing             ppc64le
/usr/bin/dighosts                                                3proxy              edge                testing             s390x
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           armv7
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           aarch64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           s390x
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           armv7
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           aarch64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           s390x
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           armv7
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           aarch64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           ppc64le
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           s390x
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           armv7
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           aarch64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           armhf
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           s390x

With -arch x86_64:

> apk-file -arch x86_64 bin/dig
FILE                                                             PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86_64
/usr/bin/dighosts                                                3proxy              edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86_64

/usr/bin/dig from the bind-tools package is not shown in the results, even though clearly stated it exists for the specified architecture when not using the -arch option.

Expected output:

FILE                                                             PACKAGE             BRANCH              REPOSITORY          ARCHITECTURE
/usr/bin/dig                                                     bind-tools          edge                main                x86_64
/usr/sbin/digest-service                                         heimdal-libs        edge                main                x86_64
/usr/bin/dighosts                                                3proxy              edge                testing             x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph.beam               erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph.beam         cloudi              edge                community           x86_64
/usr/lib/erlang/lib/stdlib-3.9.2/ebin/digraph_utils.beam         erlang-stdlib       edge                community           x86_64
/usr/lib/cloudi-1.7.5/lib/stdlib-3.9.2/ebin/digraph_utils.beam   cloudi              edge                community           x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.