Active 9 months ago. Viewed 20k times. How can I do that? Chaminda Bandara 1, 2 2 gold badges 25 25 silver badges 30 30 bronze badges. Raul Mercado Raul Mercado 1 1 gold badge 2 2 silver badges 12 12 bronze badges. How to use yum to get all RPMs required, for offline use? Add a comment. Active Oldest Votes. You can also check the rpm manual for more options and details. Cedric Guindon Cedric Guindon 1 1 silver badge 12 12 bronze badges.
Please re-read what I wrote. Any dependencies were downloaded from a repository, even if they were locally available in the directory with the RPM you installed. Marasco I'm not debating that the other posted solution is better for the specific example OP was asking about. My answer, however, is correct for answering the question in the title and is much faster than configuring a local repo, and will help others who wind up here like I did who want a fast way to get yum to automatically install the dependencies that an rpm requires.
That is the purpose of stack overflow, to help the community searching for answers and not just helping the OP. Show 2 more comments. Summarized and further minimized not ideal, but quickest : Create a directory for you local repository, e. Move the RPMs into that directory. Fix some ownership and filesystem permissions: chown -R root. The link you provided solved my case with just this one line: yum --nogpgcheck localinstall packagename. Matthew Cool, that would eliminate the whole local repository steps.
Post that as an answer I'd say. Max13, that's yum localinstall and it is the same as the answer already posted here , with the already discussed downsides for situations where dependencies are not in yum repos see the this method will not work unless [ Came here to say exactly this — nawfel bgh. DNF did the trick. For me worked just with yum install ffmpeg Below the example, i am using fedora 22 [root localhost lukas] yum install ffmpeg See 'man dnf' and 'man yum2dnf' for more information.
Dependencies resolved. Alois Mahdal 9, 6 6 gold badges 49 49 silver badges 68 68 bronze badges. Not a direct rpm solution, but I like this best. Not a RPM solution but is the most easiest way to install dependencies with only one command.
This worked flawless for me — Enrique Benitez. Rajaram Rajaram 1 1 silver badge 2 2 bronze badges. That still not handle the case if the dependencies are not in current directory. In this example, v and h are optional flags.
Package management is a common task for every system. Download it now for free. When he is not playing in the CLI, you will find him playing Cricket. More about me. Relive our April event with demos, keynotes, and technical sessions from experts, all available on demand. Enable Sysadmin. Image by Michael Schwarzenberger from Pixabay. Topics: Linux Package management.
On Demand: Red Hat Summit Virtual Experience Relive our April event with demos, keynotes, and technical sessions from experts, all available on demand. Watch Now. Related Content Image. Writing Python applications, building Linux labs, and more tips for sysadmins. Check out Enable Sysadmin's top 10 articles from December Save my name and email in this browser for the next time I comment. Notify me via e-mail if anyone answers my comment. Table of Contents.
NOTE: This command is to download the package along with its dependencies does not always successfully recognize all dependencies. It is better to use repoquery to find the dependencies and then use yumdownloader to download them.
0コメント