You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install software directly from GitHub repositories:
212
235
213
236
```sh
214
-
archpkg remove firefox
237
+
archpkg github:user/repo
238
+
```
239
+
240
+
Or using full URL:
241
+
242
+
Install software directly from GitHub repositories:
243
+
244
+
```sh
245
+
archpkg github:user/repo
215
246
```
216
247
248
+
Or using full URL:
249
+
250
+
```sh
251
+
archpkg https://github.com/user/repo
252
+
```
253
+
254
+
This feature will:
255
+
- Clone the specified GitHub repository
256
+
- Auto-detect the project type (Python, Node.js, CMake, etc.)
257
+
- Build and install the software automatically
258
+
- Clean up temporary files afterwards
259
+
260
+
**Supported project types:**
261
+
- Python (setup.py, pyproject.toml)
262
+
- Node.js (package.json)
263
+
- CMake (CMakeLists.txt)
264
+
- Makefile projects
265
+
- Go (go.mod)
266
+
- Rust (Cargo.toml)
267
+
268
+
**Examples:**
269
+
```sh
270
+
# Install a Python CLI tool
271
+
archpkg github:pypa/pip
272
+
273
+
# Install a Node.js application
274
+
archpkg github:microsoft/vscode
217
275
218
-
This will generate the command necessary to uninstall `firefox` from your system.
276
+
# Install a Go tool
277
+
archpkg github:golang/go
278
+
```
279
+
280
+
**Note:** GitPython is recommended for better performance, but the tool will fallback to using git subprocess if not available.
219
281
220
282
---
221
283
@@ -258,6 +320,142 @@ archpkg --version
258
320
```
259
321
---
260
322
323
+
## 🔄 Auto-Update System
324
+
325
+
archpkg-helper includes a comprehensive auto-update system that can automatically check for, download, and install package updates while maintaining security and giving you control over the process.
326
+
327
+
### Features
328
+
329
+
-**Automatic Update Checking**: Background service that periodically checks for package updates
330
+
-**Secure Downloads**: Resumable downloads with integrity validation
331
+
-**User Control**: Choose between automatic installation or manual approval
332
+
-**Package Tracking**: Track installed packages and their update status
333
+
-**Security Validations**: Checksum validation and command safety checks
334
+
-**Atomic Operations**: Safe configuration and data management
335
+
336
+
### Quick Start
337
+
338
+
1.**Enable Auto-Updates**:
339
+
```sh
340
+
archpkg config auto_update_enabled true
341
+
```
342
+
343
+
2.**Start Background Service**:
344
+
```sh
345
+
archpkg service start
346
+
```
347
+
348
+
3.**Track Your First Package**:
349
+
```sh
350
+
archpkg install firefox # Uses --track by default
351
+
```
352
+
353
+
### Auto-Update Commands
354
+
355
+
#### Check for Updates
356
+
```sh
357
+
# Check all tracked packages for updates
358
+
archpkg update --check-only
359
+
360
+
# Check specific packages
361
+
archpkg update firefox vscode --check-only
362
+
```
363
+
364
+
#### Install Updates
365
+
```sh
366
+
# Install all available updates
367
+
archpkg update
368
+
369
+
# Install updates for specific packages
370
+
archpkg update firefox vscode
371
+
```
372
+
373
+
#### Manage Configuration
374
+
```sh
375
+
# View all settings
376
+
archpkg config --list
377
+
378
+
# Enable auto-updates
379
+
archpkg config auto_update_enabled true
380
+
381
+
# Set update check interval (hours)
382
+
archpkg config update_check_interval_hours 24
383
+
384
+
# Enable automatic installation (use with caution)
0 commit comments