LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to install rpm from local directory using apt-get? (https://www.linuxquestions.org/questions/linux-software-2/how-to-install-rpm-from-local-directory-using-apt-get-315174/)

Miro1 04-20-2005 01:46 AM

How to install rpm from local directory using apt-get?
 
I am trying to use apt-get to help me install rpm file with all its dependencies. All required RPMs are placed in single directory on local disk.

I've tried to use the code below, but it can't find the required file, altough it is there in the dir!

apt-get -o Dir::Cache::Archives="/mydir" \
--no-download --no-list-cleanup install mypkg

What am I doing wrong ? Is this possible ?

Crashed_Again 04-21-2005 11:16 AM

Re: How to install rpm from local directory using apt-get?
 
Quote:

Originally posted by Miro1
I am trying to use apt-get to help me install rpm file with all its dependencies. All required RPMs are placed in single directory on local disk.
No need to use apt-get then. Just cd into the directory that has all the rpms and do:

# rpm -ivh *.rpm

Miro1 04-22-2005 01:02 AM

But the problem is that I have more RPMS there than just those that I want to install.
I know I can install rpms by hand, one by one, but I hoped to use some tool to do it for me
(install just the RPM that I want and all its dependencies).

Any other idea? Perhaps yum could do the trick?

TIA

reddazz 04-22-2005 02:48 AM

Take a look at apt4rpm, there should be some instructions on how to setup an apt repository.

Miro1 04-22-2005 04:05 AM

Thanks, I guess I can not skip apt repostiory building step in order to do this task.

conoyes 07-11-2013 03:57 PM

to .deb
 
use this:

alien -i -c -v [filename.rpm]

evo2 07-11-2013 10:34 PM

Hi,

welcome to LQ.
Quote:

Originally Posted by conoyes (Post 4988647)
use this:

alien -i -c -v [filename.rpm]

Eight years ago when this thread was active, there was an apt implementation for rpm which was sometimes used on RetHat derivatives. So it is possible the OP really was trying to do something sane.

Anyway please feel free to post on current threads if you think you can contribute.

Cheers,

Evo2.


All times are GMT -5. The time now is 08:28 PM.