How to download an rpm file using CURL?

Viewed 10985

I'm using centos 6.9 and ubuntu 16, and trying to download an rpm file using curl command but unable to download in Centos but its working on Ubuntu.

Terminal Output :: Ubuntu :

curl -O https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm

ubuntu:/tmp/rpms$ ls

mysql80-community-release-el6-1.noarch.rpm

When I tried the same command on CentOS it is not working.. Please Help!

[root@localContainer-MyLab55 ~]# curl -O https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm

[root@localContainer-MyLab55 ~]# ls

anaconda-ks.cfg install.log install.log.syslog

1 Answers

Thank you so much Hanshenrik for the support.. below command worked for me.

[root@localContainer-MyLab55 ~]# curl -v -O https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm -L 
[root@localContainer-MyLab55 ~]# ls
anaconda-ks.cfg  install.log  install.log.syslog  mysql80-community-release-el6-1.noarch.rpm
Related