su - apt-get update apt-cache search ^libcurl apt-get install <whatever_apt-cache_listed>
And be sure to check Google first before asking the following basic questions here.
EDIT: Thanks @ x-yuri for pointing out the difference su vs su - , it slipped through my fingers when I wrote this :-)
Victor Nițu
source share