LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2010, 10:12 AM   #1
jonn.moon
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Rep: Reputation: 0
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
 
Old 10-11-2010, 10:17 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,817

Rep: Reputation: 609Reputation: 609Reputation: 609Reputation: 609Reputation: 609Reputation: 609
"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.
 
Old 10-11-2010, 10:18 AM   #3
Gmamakis
LQ Newbie
 
Registered: Sep 2010
Location: Greece
Distribution: Fedora, Ubuntu, Slackware, Arch, Sabayon
Posts: 10

Rep: Reputation: 0
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
 
Old 10-11-2010, 10:59 AM   #4
jonn.moon
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 10-11-2010, 12:22 PM   #5
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Quote:
Originally Posted by jonn.moon View Post
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.

Last edited by quanta; 10-11-2010 at 10:54 PM.
 
Old 10-12-2010, 01:43 AM   #6
jonn.moon
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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
 
Old 10-12-2010, 02:00 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 10-12-2010, 02:09 AM   #8
jonn.moon
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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...
 
Old 10-12-2010, 02:10 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

You can install rpm from http directly as given below:



Give it a try!
 
Old 10-12-2010, 02:14 AM   #10
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Thumbs up

Quote:
Originally Posted by jonn.moon View Post
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
 
Old 10-12-2010, 02:18 AM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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.
 
Old 10-12-2010, 02:29 AM   #12
jonn.moon
LQ Newbie
 
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
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.
 
Old 10-12-2010, 02:33 AM   #13
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
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

Last edited by prayag_pjs; 10-12-2010 at 02:36 AM.
 
Old 10-12-2010, 02:35 AM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
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.
 
Old 10-12-2010, 02:41 AM   #15
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Thumbs up

Quote:
Originally Posted by chrism01 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
Yum update process stops after showing line "Downloading Packages" eagleman Red Hat 4 04-06-2010 04:10 PM
Problem downloading yum-downloadonly plugin RobertSubnet Linux - Newbie 2 01-04-2010 07:44 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
Cannot Download via. Wget, YUM, or any kind of downloading on Fedora 4 coold8 Linux - Newbie 4 01-24-2006 11:42 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration