# 使用 Homebrew, MacPorts, Nix, scoop 安装 gdrive

查看 gdrive 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gdrive
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gdrive
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gdrive
```

  证据: MacPorts ports tree: net/gdrive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#gdrive
```

  证据: nixpkgs package indexes: pkgs/by-name/gd/gdrive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Scoop (92%):

```sh
scoop install main/gdrive
```

  证据: Scoop official bucket manifest trees: bucket/gdrive.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:gdrive
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gdrive>
- **版本:** 3.9.1
- **来源摘要:** Google Drive CLI Client
- **主页:** <https://github.com/glotlabs/gdrive>
- **仓库:** <https://github.com/glotlabs/gdrive>
- **许可证:** MIT
- **源码归档:** <https://github.com/glotlabs/gdrive/archive/refs/tags/3.9.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gdrive (cli)
- gdrive (别名)

## 构建依赖

- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.9.1
- 本地数据: OK
- 上游仓库: https://github.com/glotlabs/gdrive
- 检测到的最新版本: 3.9.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

gdrive is a command-line Google Drive client from glotlabs, written as the successor to the older prasmussen/gdrive project and aimed at authenticated Drive account operations.

### 项目历史

The glotlabs/gdrive repository was created in late 2022. Its README identifies the project as the successor of gdrive2, the archived prasmussen/gdrive repository, while noting that the new client initially implemented only the most basic functionality.

The project kept the familiar gdrive command name but restarted the implementation around a new account flow and documentation set. It requires users to create Google OAuth client credentials, then run gdrive account add to authorize access through a local callback server.

### 采用历史

The predecessor prasmussen/gdrive repository dates to 2013 and became a widely starred Google Drive CLI before archival. The glotlabs successor began publishing 3.x releases in 2023 and appears in Homebrew, MacPorts, Nix, and Scoop according to the input package-manager facts.

### 使用方式

Users configure Google API credentials, add an account with gdrive account add, and then use the CLI for Google Drive operations. The official README also documents exporting and importing account data for remote servers where browser access to localhost is awkward.

### 为什么软件包爱好者会关心

For package maintainers, this formula is significant because the old gdrive name did not simply disappear: it moved from a popular archived Go CLI to a successor project with a new credential directory, OAuth setup, and package-manager continuity under the same command-line identity.

### 时间线

- 2013: prasmussen/gdrive repository created.
- 2022: glotlabs/gdrive successor repository created.
- 2023: 3.x release series published.
- 2024: v3.9.1 published.

### Related projects

- The closest related project is prasmussen/gdrive, called gdrive2 by the successor README. gdown and gdrive-downloader cover narrower public-file download workflows, while glotlabs/gdrive targets authenticated Drive client operations.

### 来源

- <https://github.com/glotlabs/gdrive>
- <https://github.com/glotlabs/gdrive#readme>
- <https://github.com/glotlabs/gdrive/releases>
- <https://github.com/glotlabs/gdrive/tree/main/docs>
- <https://github.com/prasmussen/gdrive>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- Unix: ~/.config/gdrive3/
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gdrive
- **Aliases:** gdrive@3
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - gdrive: normalized package name match | nixpkgs package indexes: pkgs/by-name/gd/gdrive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - gdrive: normalized package name match | MacPorts ports tree: net/gdrive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/gdrive: normalized package name match | Scoop official bucket manifest trees: bucket/gdrive.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [himalaya](https://pkg.so/zh-hans/brew/himalaya/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [fresh-editor](https://pkg.so/zh-hans/brew/fresh-editor/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [googleworkspace-cli](https://pkg.so/zh-hans/brew/googleworkspace-cli/) - Shares pkgdb curated category or tags: cli, google-drive, productivity.
- [mdcat](https://pkg.so/zh-hans/brew/mdcat/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [taskwarrior-tui](https://pkg.so/zh-hans/brew/taskwarrior-tui/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [pake](https://pkg.so/zh-hans/brew/pake/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [mdfried](https://pkg.so/zh-hans/brew/mdfried/) - Shares pkgdb curated category or tags: cli, productivity, rust.
- [aliyunpan](https://pkg.so/zh-hans/brew/aliyunpan/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, cloud, cloud-storage, drive.
- [cloudpan189-go](https://pkg.so/zh-hans/brew/cloudpan189-go/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, cloud, cloud-storage, file.
- [megacmd](https://pkg.so/zh-hans/brew/megacmd/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, client, cloud, cloud-storage, file.

## Combined YAML source

View the package source record on GitHub. [combined/gdrive.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gdrive.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
