How to put file in yum repository?

615 views Asked by At

I am new to Linux environment. I have an vmware esxi server, I have created a virtual machine with Fedora 17. I want to install dropbox rpm file, but can't find the a way to transfer the file to yum repository.

I tried downloading the file using wget but the transfer rate is very slow. here is the code i used to download the file:

wget "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -

so i decided to download the dropbox file and put it in the yum repository, and install it directly.

how to transfer the file to yum repository?

Thanks

1

There are 1 answers

2
Stig Tore On

The repositories are centrally managed, and putting packages there is not permitted for most users.

However, after downloading the rpm file using yum to download from a repository is unnecessary.

Simply run the command sudo rpm -U <path-to-rpm-file> to install the package.

For details on the rpm command see: http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html/RPM_Guide/ch02s03.html