mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-19 02:08:59 +08:00
1.4 KiB
1.4 KiB
DEB Package Installation
Installing from Release
- Download the appropriate DEB package from the releases page
- Install using dpkg:
sudo dpkg -i chsrc_*.deb sudo apt-get install -f # Fix any dependency issues
Building from Source
Prerequisites
Install the required build dependencies:
sudo apt-get update
sudo apt-get install build-essential debhelper devscripts fakeroot
Building the Package
-
Clone the repository:
git clone https://github.com/RubyMetric/chsrc.git cd chsrc
-
Build the DEB package:
make deb-build
-
Install the generated package:
sudo dpkg -i ../chsrc_*.deb
Cross-compilation
To build for different architectures:
# For ARM64
CC=aarch64-linux-gnu-gcc dpkg-buildpackage -us -uc -b -aarm64
# For ARMv7 (armhf)
CC=arm-linux-gnueabihf-gcc dpkg-buildpackage -us -uc -b -aarmhf
Cleaning Build Artifacts
make deb-clean
Package Information
- Package Name: chsrc
- Architecture: amd64, arm64, armhf
- Dependencies: Standard C library
- Installation Path:
/usr/bin/chsrc
- Manual Page:
/usr/share/man/man1/chsrc.1
Uninstalling
sudo apt-get remove chsrc
Or completely remove including configuration:
sudo apt-get purge chsrc