LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   where to download to? (https://www.linuxquestions.org/questions/fedora-35/where-to-download-to-557801/)

anasmich 05-30-2007 01:37 PM

where to download to?
 
Guys
when i go to shell and write su {inter}
password
then for example yum install wine or xmms or any thing ales

where the system will istall those file and spread them?

Why I'm asking because i can do the download from my work where the connection speed is very high, then will save on USB flash after that can go home and update the sys or install wine or other software

from home i was downloading 9 mB and it seems i will spend my years waiting to finish this downloading
so pls advise if there any specific folder to download in?

jschiwal 05-30-2007 03:04 PM

You could install the package from your usb drive. Or you can create a directory for the purpose and add the directory as a source, or install manually using the rpm command.

I would recommend using a site like rpm.pbone.net so that when you download an rpm package, you can also download the listed dependencies from the links.

---

By the way, please capitalize the personal pronoun I.

MensaWater 05-30-2007 03:11 PM

Nice question - made me go look for the answer:

Where it "installs" is dependent upon what the underlying RPMs (packages) direct it.

What you're wanting to do isn't a function of yum itself. That is to say yum will "install" it on the machine you run it on - not just copy the packages.

There IS a tool called yumdownloader that WILL do what you want. It is part of the package called yum-utils (yum is part of the package called yum - these are different packages).

Run "rpm -q yum-utils" to see if it is "installed" on the system you want to download to.

If not run "yum install yum-utils" to install this package.

You can then run yum-downloader to download packages without installing them.

As a test on my FC4 system I did the following:

mkdir /tmp/testit

yumdownloader --resolve --destdir=/tmp/testit amarok

The second command told it to download amarok AND any dependencies needed to install it but to put the packages in directory, /tmp/testit, rather than actually "installing" them.

After I did that I did "ls -l /tmp/testit" which displayed:
total 21424
-rw-r--r-- 1 root root 10101668 Apr 29 2006 amarok-1.3.9-1.fc4.i386.rpm
-rw-r--r-- 1 root root 7709476 Jun 19 2006 kdemultimedia-3.5.3-0.1.fc4.i386.rpm
-rw-r--r-- 1 root root 309520 Sep 25 2006 libtunepimp-0.4.3-6.fc4.i386.rpm
-rw-r--r-- 1 root root 3022214 Jun 13 2006 mysql-4.1.20-1.FC4.1.i386.rpm
-rw-r--r-- 1 root root 584550 May 20 2005 perl-DBI-1.48-4.i386.rpm
-rw-r--r-- 1 root root 1766 Jun 4 2006 postgresql-libs-8.0.8-1.FC4.1.i386.rpm
-rw-r--r-- 1 root root 151246 Aug 1 2005 taglib-1.4-1.fc4.i386.rpm

So in your case you would use the directory for your USB drive as the destdir rather than /tmp/testit.

Once you got the USB drive to your home machine you could install the packages with "rpm" or with "yum" (using localinstall rather than install).

MensaWater 05-30-2007 03:13 PM

Quote:

By the way, please capitalize the personal pronoun I.
not an e e cummings fan I take it

:p

P.S. Odd you missed the "inter" vs. "enter".

jschiwal 05-30-2007 08:12 PM

I didn't understand the {inter} at all and just ignored it.

For some packages, such as multimedia ones, where you need packages from a different repository (such as livna), if you download the package you need and save them into a directory you just created so that you can use the command:
rpm -Uhv *.rpm
to install all of them at once. You may need to do this to manually install the package and have the dependencies handled.

jay73 05-30-2007 08:27 PM

Couldn't they be installed using yum as well if you put them in the yum cache under /var?

anasmich 05-31-2007 12:10 AM

Dear jlightner
thanks a lot for your deeply explain and also thanks for the others

please note not all the people are English speakers! what ever the main point i could explain what i want, sorry what I want :). knowledge for all

because i speak 3 diffrent languges all the day so when i go home i dont bother my self to check the spell when I typing, more over when I open this site i see 1000 visitors and Few members, it would great if every body bring their problems around the table.
you would expect more questions because I want to learn how the *nix sys works.

MensaWater 05-31-2007 07:11 AM

Quote:

Originally Posted by jay73
Couldn't they be installed using yum as well if you put them in the yum cache under /var?


You could likely copy the files out of the cache but my take on the OP's question was that he wanted to know how to download them to one system without actually installing them there. This was so he could put them on a USB drive to take to another one where he did wish to install them.

wmakowski 05-31-2007 09:45 AM

I like the solution of using yumdownloader to obtain the rpm packages needed for a particular installation proposed by jlighter. I suspect there might be one problem with downloading on machine A to install packages on machine B, but am not certain. Feel free to correct me if I am wrong.

It seems the two machines would have to be kept in close synchronization with installed packages. In other words, yum determines the dependencies needed based on what what is currently installed and not installed on machine A. If the two machines are out of sync you could run into dependency problems during the install to machine B.

Bill

MensaWater 05-31-2007 10:36 AM

Good point. I'd wondered about this yesterday because none of the "dependencies" it got for amarok were installed.

As a test, today I installed mysql using "yum install". This installed both mysql and perl-DBI which were dependencies for amarok yesterday.

I then moved my original testit directory and created a new one. On doing the same yumdownloader syntax yesterday it did NOT download mysql and perl-DBI.

This means yumdownloader is resolving dependencies based on what you have "installed" on the server where you run it. You may be missing dependencies when you try to install the package(s) on the other PC if they don't have the dependencies already.

That is to say if I had another box configured exactly like my first except it did NOT have mysql and perl-DBI installed then what yumdownloader gave me today would not work to install the package amarok there because it would be missing two of its dependencies on the USB drive.

This makes sense of course because each package you install has SOME dependency. If it tried to get ALL dependencies it would have to get that for each of the dependency packages all the way up to the kernel so you'd end up essentially making an install CD with all the packages.

Of course it still would have some benefit - once he got home he would only have to install mysql and perl-DBI from the slow network connection as opposed to all of the packages.

anasmich 06-01-2007 03:34 AM

Guys hi sad we have big diffrent in time i would be a part of live chating with you

I download yseterday this yum install yum-utils but still have no yumdownloader

I have 1 PC A at work its windows XP at home i have FC6 on B
my question was if i will download from any site this program xmms-wma-1.0.5-3.fc6.i386.rpm to my PC A then copy it to USB flash then go to B double click on xmms enough to install the file in FC6 system? or i have to creat directory at desktop and then double click ?
thanks

jay73 06-01-2007 04:20 AM

No, you should install it using rpm.

First you open a terminal and you sign in as root.
Then you cd to /path/to/the/package (for example , if it's on your desktop: cd /home/[username]/Desktop )
rpm -ivh [name of the package]

That's it .

BUT: most packages are related to other packages. If you got only xmms, you may find it impossible to install. The system will probably complain (but not always) that some other packages are missing. If that happens, you need to get those other packages first and install those. But these will probably need some other packages so you have to get even more packages... That is why it is not recommended to install packages the way that you are trying to do it. The best way is connecting a computer to the internet and using yum - because yum will automatically download all the extra packages as well.

anasmich 06-01-2007 06:16 AM

thank i have 3 packges of xmms so shall i do as u said above

please check (for example , if it's on your desktop: cd /home/[username]/Desktop )
rpm -ivh [name of 3 the package]

cheers

jay73 06-01-2007 08:24 AM

Yes, that's it - all three at once minimizes the risk of running into dependency issues.

MensaWater 06-01-2007 08:27 AM

You "downloaded" yum-utils or you "installed" yum-utils?

If you type "rpm -qa |grep yum" does yum-utils appear in the output?

If so what does "rpm -ql yum-utils" show?


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