Skip to content

Instantly share code, notes, and snippets.

@robocoder
Created February 20, 2018 20:04
Show Gist options
  • Save robocoder/f4e735e5c20881ed53e21a32daadf2cb to your computer and use it in GitHub Desktop.
Save robocoder/f4e735e5c20881ed53e21a32daadf2cb to your computer and use it in GitHub Desktop.
building apt on xenial
# apt 1.4.y
git clone https://github.com/Debian/apt.git
cd apt
git checkout 1.4.y
apt-get install libcurl4-openssl-dev
apt-get install cmake
apt-get install liblz4-dev
apt-get install liblzma-dev
apt-get install libbzip2-dev
apt-get install libbz2-dev
apt-get install pkg-config
apt-get install libdb-dev
apt-get install docbook-xsl
apt-get install doxygen
apt-get install po4a
apt-get install xsltproc
apt-get install w3m
cmake -DCONF_DIR=/etc/apt -DCACHE_DIR=/var/cache/apt -DLOG_DIR=/var/log/apt -DSTATE_DIR=/var/lib/apt .
make
export LD_LIBRARY_PATH=$(pwd)/cmdline
cmdline/apt-get update # HANGS!
@robocoder
Copy link
Author

virtualbox - you really need to allocate more than 1GB to your VM; also, recommend:

apt-get install swapspace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment