LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-10-2012, 11:03 AM   #1
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
Download rpm package with dependencies


Hi, How can I download specific rpm package with dependencies using rpm or yum or yum-downloader in centos 5.6
 
Old 10-10-2012, 11:20 AM   #2
Janus_Hyperion
Member
 
Registered: Mar 2011
Location: /
Distribution: Fedora (typically latest release or development release)
Posts: 372

Rep: Reputation: Disabled
Try

Code:
yumdownloader --resolve packagename


---------- Post added 10-10-12 at 10:21 AM ----------

Actually, from the man page,

Quote:
[snip]
--resolve
When downloading RPMs, resolve dependencies and also download the required packages.
[snip]
 
Old 10-10-2012, 11:22 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
For example if you want to install a web server like Apache2 you just 'yum --downloadonly -y install httpd' which makes Yum download packages and not install them.
 
1 members found this post helpful.
Old 10-11-2012, 12:56 AM   #4
smilemukul
Member
 
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Thanks but I want to download both package & dependencies for further use.
 
  


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
[SOLVED] how can I download and install a debian package with all dependencies gujedan Linux - Newbie 7 03-05-2011 06:26 PM
does rpm figure out package dependencies? deostroll Linux - Software 1 08-18-2009 06:09 AM
Listing Dependencies of RPM Package shoaibi Linux - Newbie 2 09-18-2007 04:45 PM
Download dpkg and dependencies of a package FROM a non linux PC mfrangos79 Linux - Software 4 11-06-2006 04:47 AM
How can I install a rpm package and get the dependencies installed automatically? sceadu Fedora 10 01-06-2006 05:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:26 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
Open Source Consulting | Domain Registration