Replace apt-get with curl and dpkg