# 使用 Homebrew, Nix, pacman, winget 安装 baidupcs-go

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

## 安装

```sh
sudo av install brew:baidupcs-go
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install baidupcs-go
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#baidupcs-go
```

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

- pacman (92%):

```sh
sudo pacman -S baidupcs-go
```

  证据: Arch Linux sync databases: baidupcs-go from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- winget (92%):

```sh
winget install --id qjfoidnh.BaiduPCS-Go -e
```

  证据: Windows Package Manager source index: qjfoidnh.BaiduPCS-Go from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:baidupcs-go
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/baidupcs-go>
- **版本:** 4.0.1
- **来源摘要:** Terminal utility for Baidu Network Disk
- **主页:** <https://github.com/qjfoidnh/BaiduPCS-Go>
- **仓库:** <https://github.com/qjfoidnh/BaiduPCS-Go>
- **上游文档:** <https://github.com/qjfoidnh/BaiduPCS-Go#readme>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/qjfoidnh/BaiduPCS-Go/archive/refs/tags/v4.0.1.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- baidupcs-go (cli)
- baidupcs-go (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

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

BaiduPCS-Go is a Go command-line client for Baidu Network Disk that presents cloud-storage operations through shell-like commands. The maintained qjfoidnh repository describes itself as continuing from iikira/BaiduPCS-Go v3.6.2 and adding transfer/save support for shared links.

### 项目历史

The README says BaiduPCS-Go was inspired by GangZhuo/BaiduPCS, then based on iikira/BaiduPCS-Go, and that this maintained version continues from iikira's original v3.6.2. The qjfoidnh GitHub repository was created on November 6, 2020.

The project has had to track changing Baidu service behavior. Its README changelog includes repeated fixes for upload, download, rapid-transfer, and shared-link transfer behavior, including v4.0.0 in 2025 and v4.0.1 in 2026.

### 采用历史

BaiduPCS-Go has a sizable niche audience for users who prefer scripting Baidu Network Disk operations from terminals and servers. GitHub reported 5,219 stars for qjfoidnh/BaiduPCS-Go, and the Homebrew formula API reported stable version 4.0.1 with 91 installs in the previous 30 days as of June 30, 2026.

Package-manager coverage in the input includes Homebrew, Nix, Arch pacman, and winget, indicating cross-platform packaging beyond the upstream binary releases.

### 使用方式

The README organizes usage around login, account switching, listing remote directories, downloading, uploading, generating direct links, copying, moving, sharing, offline downloads, recycle-bin management, glob-style matching, and configuration commands. It is intended to feel like Linux shell file handling for Baidu Network Disk.

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

BaiduPCS-Go is a classic cloud-storage CLI package: it wraps a consumer service with a scriptable command surface, stores session/config state locally, and keeps chasing upstream API changes. That makes it useful to package nerds who automate backups, remote file movement, and headless server workflows around a service that otherwise favors GUI clients.

### 时间线

- 2020-11-06: qjfoidnh/BaiduPCS-Go repository created.
- 2021-2025: README changelog documents frequent fixes for Baidu upload/download and transfer behavior.
- 2025-10-29: v4.0.0 released with upload policy changes and interface-change notes.
- 2026-03-26: v4.0.1 released as an emergency fix for command parameter errors.

### Related projects

- GangZhuo/BaiduPCS is cited by the README as an inspiration.
- iikira/BaiduPCS-Go is cited by the README as the direct base for this maintained line.

### 来源

- <https://api.github.com/repos/qjfoidnh/BaiduPCS-Go>
- <https://api.github.com/repos/qjfoidnh/BaiduPCS-Go/releases/latest>
- <https://formulae.brew.sh/api/formula/baidupcs-go.json>
- <https://raw.githubusercontent.com/qjfoidnh/BaiduPCS-Go/main/README.md>


## 安全说明

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.


## Configuration files

- Unix: ~/.config/BaiduPCS-Go/pcs_config.json
- Windows: %APPDATA%\BaiduPCS-Go\pcs_config.json

## Credential files

- Unix: ~/.config/BaiduPCS-Go/pcs_config.json
- Windows: %APPDATA%\BaiduPCS-Go\pcs_config.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** baidupcs-go
- **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 - baidupcs-go: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/baidupcs-go/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - baidupcs-go - 4.0.1-1: normalized package name match | Arch Linux sync databases: baidupcs-go from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Terminal utility for Baidu Network Disk | https://github.com/qjfoidnh/BaiduPCS-Go
- winget - qjfoidnh.BaiduPCS-Go: normalized package name match | Windows Package Manager source index: qjfoidnh.BaiduPCS-Go from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [go](https://www.automicvault.com/zh-hans/pkg/brew/go/) - Build dependency declared by Homebrew.
- [duck](https://www.automicvault.com/zh-hans/pkg/brew/duck/) - Shares av.db curated category or tags: cli, cloud-storage, file-transfer, networking.
- [airshare](https://www.automicvault.com/zh-hans/pkg/brew/airshare/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [bbftp-client](https://www.automicvault.com/zh-hans/pkg/brew/bbftp-client/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [c-kermit](https://www.automicvault.com/zh-hans/pkg/brew/c-kermit/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [cadaver](https://www.automicvault.com/zh-hans/pkg/brew/cadaver/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [croc](https://www.automicvault.com/zh-hans/pkg/brew/croc/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [davix](https://www.automicvault.com/zh-hans/pkg/brew/davix/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [ffsend](https://www.automicvault.com/zh-hans/pkg/brew/ffsend/) - Shares av.db curated category or tags: cli, file-transfer, networking.
- [piknik](https://www.automicvault.com/zh-hans/pkg/brew/piknik/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, file, file-transfer, network, networking.

## Combined YAML source

View the package source record on GitHub. [combined/baidupcs-go.yml](https://github.com/automic-vault/db/blob/main/combined/baidupcs-go.yml)


## 来源

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