项目作者: mvdan

项目描述 :
F-Droid desktop client
高级语言: Go
项目地址: git://github.com/mvdan/fdroidcl.git
创建时间: 2015-04-10T20:25:32Z
项目社区:https://github.com/mvdan/fdroidcl

开源协议:BSD 3-Clause "New" or "Revised" License

下载


fdroidcl

GoDoc

F-Droid desktop client. Requires Go 1.19 or later.

  1. go install mvdan.cc/fdroidcl@latest

While the Android client integrates with the system with regular update checks
and notifications, this is a simple command line client that talks to connected
devices via ADB.

Quickstart

Download the index:

  1. fdroidcl update

Show all available apps:

  1. fdroidcl search

Install an app:

  1. fdroidcl install org.adaway

Show all available updates, and install them:

  1. fdroidcl search -u
  2. fdroidcl install -u

Unofficial packages are available on: Debian and Ubuntu.

Commands

  1. update Update the index
  2. search [<regexp...>] Search available apps
  3. show <appid...> Show detailed info about apps
  4. install [<appid...>] Install or upgrade apps
  5. uninstall <appid...> Uninstall an app
  6. download <appid...> Download an app
  7. devices List connected devices
  8. list (categories/users) List all known values of a kind
  9. repo Manage repositories
  10. clean Clean index and/or cache
  11. defaults Reset to the default settings
  12. version Print version information

An appid is just an app’s unique package name. A specific version of an app can
be selected by following the appid with a colon and the version code. The
‘search’ and ‘show’ commands can be used to find these strings. For example:

  1. $ fdroidcl search redreader
  2. $ fdroidcl show org.quantumbadger.redreader
  3. $ fdroidcl install org.quantumbadger.redreader:85

Config

You can configure what repositories to use in the config.json file. On Linux,
you will likely find it at ~/.config/fdroidcl/config.json.

You can run fdroidcl defaults to create the config with the default settings.

new: you can manage the repositories now directly via cli

  1. usage: fdroidcl repo
  2. List, add, remove, enable or disable repositories.
  3. When a repository is added, it is enabled by default.
  4. List repositories:
  5. $ fdroidcl repo
  6. Modify repositories:
  7. $ fdroidcl repo add <NAME> <URL>
  8. $ fdroidcl repo remove <NAME>
  9. $ fdroidcl repo enable <NAME>
  10. $ fdroidcl repo disable <NAME>

Advantages over the Android client

  • Command line interface
  • Batch install/update/remove apps without root nor system privileges
  • No need to install a client on the device

What it will never do

  • Run as a daemon, e.g. periodic index updates
  • Act as an F-Droid server
  • Swap apps with devices

Caveats

  • Index verification relies on HTTPS (not the JAR signature)
  • The tool can only interact with one device at a time
  • Hardware compatibility of packages is not checked

FAQ

  • What’s the point of a desktop client?

This client works with Android devices connected via ADB; it does not install
apps on the host machine.

  • Why not just use the f-droid.org website to download APKs?

That’s always an option. However, an F-Droid client supports multiple
repositories, searching for apps, filtering by compatibility with your device,
showing available updates, et cetera.