mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-deb.git
synced 2026-09-20 08:03:46 +08:00
8459dfde01e90589b253eb15f44d45bad1cc6372
Latest OpenSSH for Debian / Ubuntu distros.
A simple script to build latest deb package, using Debian sid packaging sources.
Similar Project: Latest OpenSSH RPM for CentOS
Direct Build
# Install Dependencies
sudo apt install pkgconf build-essential fakeroot \
dpkg-dev debhelper debhelper-compat dh-exec dh-runit \
libkrb5-dev libpam0g-dev libwrap0-dev \
libaudit-dev libedit-dev libfido2-dev \
libgtk-3-dev libselinux1-dev libsystemd-dev
# pull source from debian sid
./pullsrc.sh
# direct build
./compile.sh
Use Docker to Build
Build without installing a bunch of dev packages in your system.
./pullsrc.sh
docker build \
-t opensshbuild \
--build-arg DISTRO=ubuntu \
--build-arg DISTVER=22.04 \
--build-arg APT_MIRROR=ftp.us.debian.org \
./docker
docker run --rm -v $PWD:/data opensshbuild
docker image rm opensshbuild
Install DEBs
All DEBs are generated right under build directory. (Either direct build or with docker).
ls -l build/*.deb
# Ignore thoses files with dbgsym and tests
# Normally all you need is these 3 debs.
# openssh-client openssh-server openssh-sftp-server
find build -maxdepth 1 ! -name '*dbgsym*' ! -name '*tests*' -name '*.deb'
Description
Languages
Shell
100%