To install curl on Ubuntu 14.04, you can use the following steps:
- Open a terminal window by pressing
Ctrl + Alt + T
. - Update your package index to ensure you have the latest version of the package lists:
bash
sudo apt-get update
- Install curl by running the following command:
bash
sudo apt-get install curl
- Once the installation is complete, you can verify the installation by checking the version of curl:
bash
curl --version
Curl should now be installed on your Ubuntu 14.04 system. You can use it to transfer data to or from a server, using one of the supported protocols such as HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP, or FILE.
المزيد من المعلومات
عند تثبيت curl
على Ubuntu 14.04، فإنه يعتمد على حزم أساسية تحتاج إلى توفرها على نظامك. من ضمن هذه الحزم:
libcurl3
: هذه الحزمة توفر مكتبة libcurl الأساسية التي يعتمد عليهاcurl
للقيام بعمليات النقل.libcurl3-gnutls
: بعض التوزيعات تستخدم نسخة منlibcurl
مدمجة مع GnuTLS بدلاً من OpenSSL. هذه الحزمة تقدم الدعم اللازم ل GnuTLS.libgnutls26
(أو أحدث): إذا كنت تستخدم نسخة تعتمد على GnuTLS.libidn11
: هذه الحزمة توفر دعم لمعالجة الأسماء النطاقية الدولية (IDN) فيcurl
.libldap-2.4-2
: إذا كنت تخطط لاستخدام LDAP معcurl
.
يمكنك تثبيت هذه الحزم بسهولة باستخدام apt-get
. على سبيل المثال، لتثبيت libcurl3
و libcurl3-gnutls
، يمكنك استخدام الأمر التالي:
bashsudo apt-get install libcurl3 libcurl3-gnutls
يجب أن يتعرف نظام Ubuntu 14.04 على الحزم الأخرى التي قد تكون ضرورية تلقائيًا ويتم تثبيتها بالتزامن مع curl
.