LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 03-02-2018, 06:26 PM   #1
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Rep: Reputation: Disabled
download application rpms and deps in one go?


I'm looking for a way to download a program and all it's
dependencies in the simplest possible way.
File size is not a concern.

It occurs to me that perhaps a bash script controlling
yum or something similar could ID all the rpm's and collect
them in a folder for later use.

Does anyone know if this has been done - or can say why
it can't be done?

This would be very useful for example when (as I am now)
trying to install an application on an offline centos 7 system with
another online system that is centos-6.

Installing the Centos7 repos on the centos6 machine doesn't work as xz then fails on all files...
(I tried that)

If I can get this to happen I can copy the rpm's into my local
repo (now working) on the centos7 machine and install from there.
(hopefully)

Any constructive comments on getting this or an alternate method to work would be very welcome.

TIA
F.
 
Old 03-03-2018, 04:32 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,518

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
You should be able to get a fairly accurate "deplist" from CentOS 6 :
Code:
# yum deplist [package-name]
https://linux.die.net/man/8/yum



-

Last edited by knudfl; 03-03-2018 at 04:35 AM. Reason: Added man page
 
3 members found this post helpful.
Old 03-03-2018, 05:01 AM   #3
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
knudfl

Please take the trouble to read the post I made before replying.
 
Old 03-03-2018, 06:01 AM   #4
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by fred2014 View Post
knudfl

Please take the trouble to read the post I made before replying.
Knufl has showed you how to get a list of the dependencies so that the bash script you write knows which dependencies to download.

Your attitude, if I may so, is rather dismissive, particularly coming from someone who used the acronym "TIA", despite forum protocol (which you should take the trouble to read) recommending that text-speak not be used - it is very difficult in particular for our non-native English speakers to know what a lot of acronyms and abbreviations mean. As for the title, I have never seen "dependencies" shortened to "deps" before. I initially thought it referred erroneously to deb (the package format) before opening the thread.

We can all be picky, we can all be dismissive. But we can also choose not to be.

So, what have you found out so far?
 
2 members found this post helpful.
Old 03-03-2018, 06:22 AM   #5
fred2014
Member
 
Registered: Mar 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
hydruga

No - your attitude is the problem.
I don't know if you know anything about linux at all but if YOU had bothered to read my post
you would know that his response was totally irrelevant to the question asked.
I refer my previous post to you. Your clicking an irrelevant post as 'helpful' is idiotic and disruptive to
future searches. There are no acronyms or anything confusing for foreign readers of an english
language forum in that post.

As it happens I have just returned to point out to the 239 viewers of the post who didn't
respond that whilst reading the yum man pages to work out how to write the script that I
had discovered the "yumdownloader" program and ask if anyone has used it.

YOUR muddying of this thread now means people will be put off following it and discovering
something they seem not to know.

Well done.
 
Old 03-08-2018, 07:59 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,811

Rep: Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003Reputation: 8003
Quote:
Originally Posted by fred2014 View Post
hydruga
No - your attitude is the problem. I don't know if you know anything about linux at all but if YOU had bothered to read my post you would know that his response was totally irrelevant to the question asked. I refer my previous post to you. Your clicking an irrelevant post as 'helpful' is idiotic and disruptive to future searches. There are no acronyms or anything confusing for foreign readers of an english language forum in that post.

As it happens I have just returned to point out to the 239 viewers of the post who didn't respond that whilst reading the yum man pages to work out how to write the script that I had discovered the "yumdownloader" program and ask if anyone has used it.

YOUR muddying of this thread now means people will be put off following it and discovering something they seem not to know. Well done.
Sorry, no. knudfl gave you a command to use, which you didn't seem to understand/think about. Because (since your goal was writing a shell script), and you were going to read the RPM names and get dependencies. Why couldn't you loop through the results of rpm -qa, run them through the "yum deplist", and then feed that to wget? All shell-scriptable, but it doesn't seem like you thought about that, but were more focused on being snotty to people who are trying to help you, which you have done numerous times in the past.

And it seems like rknichols mentioned yumdownloader in your other thread:
https://www.linuxquestions.org/quest...0/#post5826774

And add to any of this the INCREDIBLY SIMPLE thought of just pointing wget to a repository location of your choice, and getting all the RPM's with a single command, would indicate that YOU don't know much about Linux. running:
Code:
wget -r -np http://mirror.centos.org/centos/7/
...will get EVERYTHING. That is, ALL the RPM's...that's what you wanted, right??? Or how about just burning the latest 7.4 ISO to a DVD/thumb-drive? Either of those accomplishes your goal of getting the 7.x RPM's and their dependencies to media.

Good luck.
 
3 members found this post helpful.
Old 03-09-2018, 01:09 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
This sentence is the most important part of this post.
LQ should be a place where folks get along to help others to use linux.

In lieu of paying for support, people visit LQ to get some ideas. The ideas come from members who try to offer solutions or alternate solutions to the questions. If someone needs support then they do have an option to purchase a commercial product or support contract.
Members replies ought to be considered a free gift. Some gifts are bozo shoes and some are gold watches.


When members fail to conform to maintaining technical and polite replies or posts to threads, they then get out of hand.
If a members post requires some attention please send a report and let mods look at it.

It is a poor practice to scold members in public and I try to avoid it.
It is also a discouraged practice to close threads but this one has not lived up to polite discussion and transfer of ideas.
goto 20

Last edited by jefro; 03-10-2018 at 09:01 AM.
 
  


Closed Thread

Tags
automate, downloads, rpm, yum



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
Where to Download Linux RPMs salmanucit Linux - Software 1 02-01-2010 02:40 AM
Mixing RPMs and self-compiled application Swakoo Linux - Server 4 06-20-2007 04:23 AM
What application does FC3 use for handling RPMS? DesyphER Linux - Software 4 02-28-2005 03:54 PM
Do I need to download RPMS.cooker? fossean Linux - Software 5 12-03-2001 08:07 PM
RPMs download sites gogo Linux - General 3 04-30-2001 10:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:55 AM.

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