command
module
Version:
v0.6.7
Opens a new window with list of versions in this module.
Published: Jul 5, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Checker
Table of Contents
适用于 Arch Linux 的系统检查工具
Install
一键安装
curl -fsSL https://raw.githubusercontent.com/YHYJ/checker/main/install.sh | sudo bash -s
Usage
Compile
当前平台
go build -gcflags="-trimpath" -ldflags="-s -w -X github.com/yhyj/checker/general.GitCommitHash=`git rev-parse HEAD` -X github.com/yhyj/checker/general.BuildTime=`date +%s` -X github.com/yhyj/checker/general.BuildBy=$USER" -o build/checker main.go
交叉编译
使用命令go tool dist list
查看支持的平台
Linux
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -gcflags="-trimpath" -ldflags="-s -w -X github.com/yhyj/checker/general.GitCommitHash=`git rev-parse HEAD` -X github.com/yhyj/checker/general.BuildTime=`date +%s` -X github.com/yhyj/checker/general.BuildBy=$USER" -o build/checker main.go
使用uname -m
确定硬件架构
- 结果是 x86_64 则 GOARCH=amd64
- 结果是 aarch64 则 GOARCH=arm64
Dependencies
- bash
- coreutils
- package-query
- pacman
- pacman-contrib
- parallel
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.