chsrc/pkg/DEB-INSTALL.md

1.4 KiB

DEB Package Installation

Installing from Release

  1. Download the appropriate DEB package from the releases page
  2. 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

  1. Clone the repository:

    git clone https://github.com/RubyMetric/chsrc.git
    cd chsrc
    
  2. Build the DEB package:

    make deb-build
    
  3. 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