Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-31-2009, 10:39 AM   #1
Registered: May 2009
Posts: 37

Rep: Reputation: 0
Question Downloading packages + dependencies from repos

Hello everyone I'm still new to Linux and trying to learn the basics of using it (currently a Windows user but willing to move once I learn Linux better). My system is a dual boot between Windows XP and OpenSuse 11.1 (64 bit) which is the distro I use. This is one of the questions I need to know about before I can start using Linux.

I'm one of the users who don't like running applications from online sources without always having an offline backup too. Since in Linux most things are installed from repos, I'd love to know how a repo as well as all its dependencies which are not on that distro's DVD can be downloaded into .rpm packages which can be installed offline in case the user can't connect or the repo for that program is gone. I'd also like to know how to do that in case the program is already installed with all dependencies (if it can still know the dependency packages if they're already installed).

I made this thread on the OpenSuse forum a while ago but no one gave me a clear answer, so I was wondering if anyone here could help me with that. It would help a lot to know all details about this and how it can be done precisely. Thanks.
Old 05-31-2009, 11:00 AM   #2
Senior Member
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 486Reputation: 486Reputation: 486Reputation: 486Reputation: 486

I understand your questions are the basic ones commonly asked by linux newbies. Actually, the scope of your questions is broad and cannot be answered easily.

My advise is of course for you (as did everyone who passed this way) is to read basic tutorials. I have one linked hereunder my signature, quite an old tutorial but very well written. You can download it and begin reading. You may not finish the whole material but having at least gone halfway you will have more than enough TO ENJOY YOUR LINUX EXPERIENCE.

There is usually documentation for your distro which if you read you'd save lots of time than posting questions here every moment need arises. Usually it is found in folders:


also in man command:

$ man [command here] <Enter>

Hope this helps.

Old 05-31-2009, 11:18 AM   #3
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
off line management of downloaded files in Open SUSE like distro will mean more work. In opensuse simply use the package manager. You will have a few options there.

Otherwise go in for Slackware
Old 05-31-2009, 11:21 AM   #4
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
In Ubuntu you have something like aptoncd for what you want to do... you are looking for something similar

Try searching for 'package manage' in your package manager
Old 05-31-2009, 12:53 PM   #5
Registered: May 2009
Posts: 37

Original Poster
Rep: Reputation: 0
I shall look in the tutorials if they mention how to do this. And Amani, which exact package manager? Is it "rpm"? From what I know rpm only works for installing packages which are already there. At the current time I'm familiar with 3 install methods: the "rpm -i" command, the "zypper install" command (I like Zypper most) and installing from repos with Yast -> Software Management.

I do know of some way to do this actually but it's very inaccurate. If I use Zypper, I can activate packet caching with the command "zypper mr --keep-packages --all" and find them in /var/cache/zypp/packages. However this only works if Zypper finds the program by name as far as I know, and I'm not sure how to retrieve already installed software together with their dependencies again using this method.

What I was hoping for was a possible direct command of the type "zypper -download --depencencies_too" or something like that, which could download all needed packages right into that folder. Sorry if I said something stupid in this post, I still don't understand a lot here.
Old 05-31-2009, 01:34 PM   #6
Senior Member
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
I am not sure if that it was what you're looking for , in the old versions of opensuse when you are updating using Yast you have the option to hold on the downloads .
So you can use it to update for instance a other machine running opensuse without downloading again.
In other words it is saved on you're machine.
IF I understand it correct this option come back with opensuse 11.2.
So if this is what you're looking for wait until opensuse 11.2 is out ,they are not at Milestone 1 with opensuse 11.2
Do not know what official release date is
Old 06-04-2009, 06:30 AM   #7
Registered: May 2009
Posts: 37

Original Poster
Rep: Reputation: 0
So will Yast have the ability to keep repo packages + dependencies? That would be a great possibility, it is indeed what I'm looking for hope that will be added in 11.2.
Old 06-04-2009, 06:49 AM   #8
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have a look at the man page for zypper, because yum (the equivalent for RH/Fedora) allows you to install and keep installed RPMs (and dependencies) very easily, and you can either install them on another computer via rpm or create your own local repo and use yum.

Zypper may allow the same.
Old 06-04-2009, 07:40 AM   #9
Registered: Apr 2009
Posts: 107

Rep: Reputation: 19
Some locations where you can find RPM packages for downloading to your hard disk:

On the long term you will find it more practical to keep only a few critical applications saved as source/binary tarballs. In most other cases it make more sense to rely on the package manager and to keep major versions of your distribution available on CD/DVD.

Linux Archive

Last edited by soleilarw; 06-18-2009 at 04:24 AM.


download, package, repo, rpm

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
Broken packages after reinstalling lenny + pure:dyne repos Sunji.roaoul Debian 3 03-26-2009 01:11 PM
Downloading Freebsd packages paragkalra *BSD 2 07-23-2008 10:27 AM
Downloading packages problem ftblplyr46 Linux - Newbie 3 03-30-2008 03:59 PM
packages dependencies. varaonsite Debian 2 07-18-2006 06:36 AM
Downloading Packages lloyd_smart Linux From Scratch 13 01-19-2005 12:35 PM > Forums > Linux Forums > Linux - Newbie

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

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