An apt.exe tool written in C for Windows. Mimics Linux apt using scoop as backend.
Access rate limit exceeded. Please log in to continue.
Translated by AI, submit an issue feedback
Apt for Windows
一款采用 C 语言为 Windows 编写的 apt.exe 工具。
它以 Scoop 作为后端,提供类 Linux 风格的 apt 命令体验。
---
构建
需要 MinGW-w64 或 MSYS2。
gcc apt.c -o apt.exe -static -ladvapi32 -lshell32 -luser32
---
安装
-
从 发布页面 下载
apt.exe,或从源代码构建。 -
将
apt.exe复制到 PATH 环境变量中的某个目录,例如:
move apt.exe C:\\Windows\\System32
或者将其文件夹添加到:
System Properties → Environment Variables → PATH
---
用法
apt install git
apt remove nodejs
apt search python
apt update
---
注意事项
- 本工具是一个前端包装器,并非真正的包管理器。
- 必须安装 Scoop 并确保其在 PATH 环境变量中可用。
- 若出现“apt: error: you must be root to perform this command.”,则需要以管理员身份运行 apt,可以使用 gsudo 来实现:
scoop install gsudo
sudo apt ...
Introduction
An apt.exe tool written in C for Windows. Mimics Linux apt using scoop as backend.
Customize your domain