LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Downloading using yum (https://www.linuxquestions.org/questions/linux-newbie-8/downloading-using-yum-837407/)

jonn.moon 10-11-2010 09:12 AM

Downloading using yum
 
Hi all.

I have just started linux a week ago. If my question sound stupid then my apologies although i researched alot before posting here.

its regarding yum. I know yum is used to download from repository sites. And i must configure these repo sites under /etc/yum.repos.d/. But can i install from a non-repo site using yum ?

I tried installing dynagen from sourceforge.net with the following link

[root@localhost new]# yum localinstall --nogpgcheck http://sourceforge.net/projects/dyna...fc9.noarch.rpm
Loading "downloadonly" plugin
Loading "installonlyn" plugin
Setting up Local Package Process
Cannot open file: http://sourceforge.net/projects/dyna...fc9.noarch.rpm. Skipping.
Nothing to do
[root@localhost new]#

But when i try the same with wget, its successful

[root@localhost new]# wget http://sourceforge.net/projects/dyna...ad--14:49:12-- http://sourceforge.net/projects/dyna...h.rpm/download
=> `download'
Resolving sourceforge.net... 216.34.181.60
Connecting to sourceforge.net|216.34.181.60|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://downloads.sourceforge.net/pro...e_mirror=space [following]
--14:49:13-- http://downloads.sourceforge.net/pro...e_mirror=space
=> `dynagen-0.11.0-1.fc9.noarch.rpm?r=&ts=1286804887&use_mirror=space'
Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://space.dl.sourceforge.net/proj...fc9.noarch.rpm [following]
--14:49:14-- http://space.dl.sourceforge.net/proj...fc9.noarch.rpm
=> `dynagen-0.11.0-1.fc9.noarch.rpm.1'
Resolving space.dl.sourceforge.net... 92.46.53.163
Connecting to space.dl.sourceforge.net|92.46.53.163|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,090,397 (2.0M) [application/octet-stream]

100%[====================================>] 2,090,397 6.24K/s ETA 00:00

15:06:12 (2.04 KB/s) - `dynagen-0.11.0-1.fc9.noarch.rpm.1' saved [2090397/2090397]

[root@localhost new]#

Can someone help me here, why i am not able to download from the same site using yum ? can yum only download from repo sites ?

Thanks in advance

AlucardZero 10-11-2010 09:17 AM

"localinstall" takes local RPM files (do yum localinstall dynagen-0.11.0-1.fc9.noarch.rpm). Apparently it can't just download from URLs, so you should use wget then yum localinstall.

Gmamakis 10-11-2010 09:18 AM

Dear john.moon
As far as I am concerned yum is a package manager, not a download application.
Its work is to download and install a package from one of the predefined repos of Fedora.
The tool you want actually if you want to download something is wget.
Installation can proceed then with rpm -ivh name_of_package.rpm
If you want to stick to yum, then try to find repositories that may include the application you want to download.
Since my knowledge of Fedora package management is not great, others may give a more complete responce

Cheers

jonn.moon 10-11-2010 09:59 AM

Dear Fellows,

Really thanks for the feedback. Actually during my research i saw some examples where they used yum to download and install. I guess they were doing from some repo.

Can you guys confirm that same is the issue with rpm ? coz when i try this
[root@localhost new]# rpm -Uvh http://sourceforge.net/projects/dyna...h.rpm/download
Retrieving http://sourceforge.net/projects/dyna...h.rpm/download
error: skipping http://sourceforge.net/projects/dyna...h.rpm/download - transfer failed - Unknown or unexpected error
[root@localhost new]#

You can see, i am getting the same error. So can you kindly confirm that rpm can also not be used for downloading the file ? i am aware for wget and curl, just wanted to clear my doubts :-)

thanks

quanta 10-11-2010 11:22 AM

Quote:

Originally Posted by jonn.moon (Post 4123963)
So can you kindly confirm that rpm can also not be used for downloading the file ?

No, it can. Read the ftp/http section in the man page for rpm.

But in this case, maybe it has problem with internal http client, sf policy or both of them.

jonn.moon 10-12-2010 12:43 AM

Dear Sir,

I have seen and the following is found


rpm allows the following options to be used with http URLs:

--httpproxy HOST

The host HOST will be used as a proxy server for all http transfers. This option may also be specified by configuring the macro %_httpproxy.
--httpport PORT

The TCP PORT number to use for the http connection on the proxy http server instead of the default port. This option may also be specified by configuring the macro %_httpport.


But in my case, i am not using any proxy. Can someone help me troubleshoot this issue. As i have shown, i download the file using wget successfully, means my internet is working properly. So what do i need in addition to get it working with rpm.

Thanks

linuxlover.chaitanya 10-12-2010 01:00 AM

You can directly install rpm file from a remote location using URLs but you can use rpm as a download manager. Not matter what your proxy settings are.

jonn.moon 10-12-2010 01:09 AM

Dear Sir,

As you can see, this is my main issue here :-), i am not able to download from URLs using rpm. My internet is working fine. Can someone help me troubleshoot, why rpm is not able to download. I didnt made any typo because as soon as i replace rpm -Uvg with wget, it downloads successfully...

prayag_pjs 10-12-2010 01:10 AM

Hi,

You can install rpm from http directly as given below:



Give it a try!

prayag_pjs 10-12-2010 01:14 AM

Quote:

Originally Posted by jonn.moon (Post 4123963)
Dear Fellows,


[root@localhost new]# rpm -Uvh http://sourceforge.net/projects/dyna...h.rpm/download
Retrieving http://sourceforge.net/projects/dyna...h.rpm/download
error: skipping http://sourceforge.net/projects/dyna...h.rpm/download - transfer failed - Unknown or unexpected error
[root@localhost new]#

You can see, i am getting the same error. So can you kindly confirm that rpm can also not be used for downloading the file ? i am aware for wget and curl, just wanted to clear my doubts :-)

thanks

You cannot install the above rpm because for rpm to get downloaded and intalled you need direct path of rpm which above link is not pointing.

So you do this it will work:

Code:

rpm-ivh http://packages.sw.be/dynagen/dynagen-0.10.1-1.rh9.rf.noarch.rpm

chrism01 10-12-2010 01:18 AM

You want to start by ensuring the pkg you want is for the version of Linux you have... What have you got (distro)?
Try

cat /etc/*release*
uname -a

and post the results.

jonn.moon 10-12-2010 01:29 AM

Dear Sir, here is the result

[root@localhost ~]# cat /etc/*release*
Fedora release 7 (Moonshine)
cat: /etc/lsb-release.d: Is a directory
Fedora release 7 (Moonshine)
[root@localhost ~]#

I have also tried the following

[root@localhost ~]# rpm -vi http://sourceforge.net/projects/dyna...fc9.noarch.rpm
Retrieving http://sourceforge.net/projects/dyna...fc9.noarch.rpm
error: skipping http://sourceforge.net/projects/dyna...fc9.noarch.rpm - transfer failed - Unknown or unexpected error
[root@localhost ~]#


As you can see, i am now pointing directly to rpm file, but it doesnt work. Kindly bear with me since i just want to clear my concepts. I just want to understand why rpm is not working with the above link where wget is working fine.

prayag_pjs 10-12-2010 01:33 AM

Hi,

If you see it properly its(sourceforge one) not direct path.Try opening the link: http://sourceforge.net/projects/dyna...fc9.noarch.rpm in new tab you will come to know its not direct path....

Can you try this link and let us know quickly:

rpm-ivh http://packages.sw.be/dynagen/dynage....rf.noarch.rpm

chrism01 10-12-2010 01:35 AM

1. Fedora 7 (aka FC7) is way out of date & unsupported
2. Fedora 9 (aka F9 or FC9) is way out of date & unsupported

I'd start with a current version http://en.wikipedia.org/wiki/Fedora_...ting_system%29 or or go with Centos (free version of RHEL).
Fedora is the bleeding edge R&D distro for RHEL; almost definitely not what you want.

prayag_pjs 10-12-2010 01:41 AM

Quote:

Originally Posted by chrism01 (Post 4124618)
1. Fedora 7 (aka FC7) is way out of date & unsupported
2. Fedora 9 (aka F9 or FC9) is way out of date & unsupported

I'd start with a current version http://en.wikipedia.org/wiki/Fedora_...ting_system%29 or or go with Centos (free version of RHEL).
Fedora is the bleeding edge R&D distro for RHEL; almost definitely not what you want.


Hi Chris,

If I am not wrong :
"Starting with Fedora 7, there is no more Core, and no more Extras; there is only Fedora. One single repository, built in the community on open source tools, assembled into whatever spins the Fedora community desires"

Hi jonn.moon Chris is right fedora9 is out dated,I gave you that rpm just clear you doubts.You better download lates version Fedora13 and try using that.


All times are GMT -5. The time now is 07:11 PM.