ERROR: Slooooow dooooown... this page load was delayed.


subnetcalc - IPv4/IPv6 subnet calciulator ChangeLog

HOWTO


# SubNetCalc 2.4.22
# =================
# Similar:
# ipcalc
# whatmask

# Prerequisites:
# CMake
# pkg-config

# If you have trouble getting it from nntb.no, you can also get it from
# the GitHub release page:
# https://github.com/dreibh/subnetcalc/releases/tag/subnetcalc-2.4.22

# Get the tarball
cd
test -f installed/subnetcalc-2.4.22.tar.xz &&
mv -f installed/subnetcalc-2.4.22.tar.xz .
test ! -f subnetcalc-2.4.22.tar.xz &&
wget https://www.nntb.no/~dreibh/subnetcalc/download/subnetcalc-2.4.22.tar.xz

# Verify tarball w/ sha256sum:
echo "8f239f2af32db1ae4cab68e6a70b3f8860fb611e47072d7fbcb07cbe54eaf2\
07  subnetcalc-2.4.22.tar.xz" | sha256sum -c

# Verify tarball w/ gpg:
( gpg --list-keys 21412672518D8B2D1862EFEF5CD5D12AA0877B49 2>&1 ||
gpg --keyserver keyserver.ubuntu.com --recv-keys \
21412672518D8B2D1862EFEF5CD5D12AA0877B49 ) &&
wget -nc https://www.nntb.no/~dreibh/subnetcalc/download/\
subnetcalc-2.4.22.tar.xz.asc &&
  gpg --verify subnetcalc-2.4.22.tar.xz.asc &&
   rm subnetcalc-2.4.22.tar.xz.asc

# Extract the source
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "subnetcalc-*" -exec rm -r {} \;
tar xJvf ~/subnetcalc-2.4.22.tar.xz
cd subnetcalc-2.4.22
test $UID = 0 && chown -R root:root .

# Create the build directory
mkdir build
cd build

# Configure the build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DCMAKE_INSTALL_MANDIR=/usr/local/man ..

# Build it
make

# Become root to install it
su

# Install it
make install

# Become your non-root user again
exit

# Save the source for later
cd
mkdir -p -m 0700 installed
rm -f installed/subnetcalc-*.tar.*
mv subnetcalc-2.4.22.tar.xz installed/


# If you ever want to uninstall SubNetCalc, this should do it:
cd ~/src/subnetcalc-2.4.22/build
su
# See install_manifest.txt for a list of files to remove.
# There are only 2, but if there were many, you might do something
# like this:
# cat install_manifest.txt | xargs rm
exit
find ~/src -maxdepth 1 -type d -name "subnetcalc-*" -exec rm -r {} \;
rm -f ~/installed/subnetcalc-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EST -0500)
HOWTO last updated: 2023-10-11 11:50am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]