Skip to content

Instantly share code, notes, and snippets.

@nrrb
Forked from benlk/curl-with-sftp.sh
Last active August 29, 2015 14:20
Show Gist options
  • Save nrrb/f151cb634b09915b7c78 to your computer and use it in GitHub Desktop.
Save nrrb/f151cb634b09915b7c78 to your computer and use it in GitHub Desktop.
#!/bin/sh
# copied from http://zeroset.mnim.org/2013/03/14/sftp-support-for-curl-in-ubuntu-12-10-quantal-quetzal-and-later/
mkdir /tmp/curl
cd /tmp/curl
sudo apt-get update
sudo apt-get install build-essential debhelper libssh2-1-dev
apt-get source curl
sudo apt-get build-dep curl
cd curl-*
dpkg-buildpackage
cd ..
dpkg -l | grep curl
echo "Now you need to reinstall /tmp/curl_7.* and /tmp/libcurl3_* "
echo "You may also want to copy the built packages someplace safe, to save time"
# This will reinstall the curl and libcurl dependencies. Yes, you need to reinstall libcurl as well.
# dpkg -i curl_7*.deb
# dpkg -i libcurl3_*.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment