Install curl on OpenWrt TP-Link TL-WR740N

Hello, how i can install curl on openwrt TP-Link TL-WR740N?

i have tryed:
root@OpenWrt:~# opkg install curl
Unknown package 'curl'.
Collected errors:

  • opkg_install_cmd: Cannot install package curl.

i also have found: https://openwrt.org/packages/pkgdata/curl but i do not see any packages to install...

how i can install curl?

Maybe you forgot to

opkg update

?

on

opkg update

i see this answer (i do not need upgrade all packages, i just need install curl):

Installing curl (7.60.0-4) to root...
Downloading http://downloads.openwrt.org/releases/18.06.8/packages/mips_24kc/base/curl_7.60.0-4_mips_24kc.ipk
Installing libmbedtls (2.16.6-1) to root...
Collected errors:
 * verify_pkg_installable: Only have 84kb available on filesystem /overlay, pkg libmbedtls needs 166
 * opkg_install_cmd: Cannot install package curl.

what could i remove frome instaled packages to get place?

etc... i need jusr router wifi and curl

You have a 4/32 MB device. See the following links for further information and what you can do now.

https://openwrt.org/supported_devices/432_warning
https://openwrt.org/supported_devices/openwrt_on_432_devices
https://openwrt.org/faq/no_space_left_on_device
https://openwrt.org/faq/build_image_for_devices_with_only_4mb_flash

Removing packages that are part of the OpenWrt image does not save you any space.
Only removing packages that have been installed after flashing the images will actually gain some space.

You would be better of building your own image with curl included (if it will fit in the first place). See above how to build an image for 4MB devices.

You would be even better off buying a device with sufficient space for current OpenWrt.

1 Like

You did not really say what you are trying to accomplish with curl but an alternative is to download the file to your computer and use scp to put the file on the router.

See openwrt upgrade procedure
https://openwrt.org/docs/guide-user/installation/generic.sysupgrade