LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt for RHEL5 (https://www.linuxquestions.org/questions/linux-software-2/apt-for-rhel5-712057/)

annab123 03-16-2009 03:37 PM

apt for RHEL5
 
Hello,

I need to install apt on my RedHat enterprise machine [for installing jikes rvm, which in turn requires apt].

I tried to download it using yum, and use these directions:
http://www.sysadminwiki.net/wiki/ind...t-get_in_RHEL5

(with small changes, as I am working on el5-x86_64).

yum claims that the apt package is installed (which I see by using # yum info apt), but "which apt" says that "no apt in ...". apt-get gives an even stranger message, that "E: State directory /var/lib/apt/ doesn't exist.".

I am somewhat lost here, and I am seeking for advice.

Thanks so much,
Anna

lazlow 03-16-2009 04:34 PM

You do understand that you will not be able to install anything with apt that you cannot install with yum? Packages are generally made for a specific distro (and version) and generally will not work on any other distro (and often not even a different version of that same distro).

billymayday 03-16-2009 04:43 PM

Perhaps this link will help a little http://dag.wieers.com/rpm/FAQ.php#B

lazlow 03-16-2009 04:50 PM

Just keep in mind that the link to dag is several years out of date. For instance, RHEL (starting with V5.0) uses yum instead of up2date. up2date itself has been depreciated in both Fedora(starting with FC4?) and RHEL(starting with RHEL5).

annab123 03-16-2009 05:07 PM

lazlow,

I'm not sure that I understand. If the script of building jikes rvm needs to use apt, and it then has something with the same interface, then the problem is solved, right? Do you mean that by installing apt, it might download the wrong version (i.e. the Debian version) ?

billymayday,

From what I understand, it is another version of apt, that can be downloaded using rpm... I will try that. I would prefer understanding why my previous version does not work first :confused: . Did you try working with this version?

Thanks so much for the fast replies,
Anna

alan_ri 03-16-2009 05:36 PM

You can set repos for apt in /etc/apt/sources.list.
Post the output of
Code:

whereis apt
.
Will you post the output of a jikesrvm script too?
Also,from where did you download jikesrvm?

lazlow 03-16-2009 05:45 PM

I downloaded the tarball and then looked at the howto, I am not seeing apt as a dependency. How are you trying to install it and where did you get it?


annab123 03-17-2009 01:28 AM

Hi all,

Thanks for your help.
I just wanted to let you know that I found the solution to my problem.

Apparently, Sun Java comes with apt natively, and all I needed to do, was to add the java bin directory to my $PATH:
setenv PATH ${PATH}:/usr/local/jdk1.5.0_14/bin

...

Regarding 'whereis apt', I am getting the following answer:
apt: /etc/apt /usr/share/man/man8/apt.8.gz

Which is strange :scratch: . I'll leave it alone for now, as my original problem is solved.

Thanks!
---
Anna

alan_ri 03-17-2009 04:37 PM

Just to make something clear;the APT that you Anna are talking about is "Annotation processing tool" and you can find some info here.

Regarding Debian's APT,here's the output from whereis apt in my terminal;
Code:

apt: /etc/apt /usr/lib/apt /usr/local/bin/apt /usr/share/apt /usr/share/man/man8/apt.8.gz
I don't use Red Hat (I've used Fedora before but I never installed APT),so I can't tell at the moment is there something specific that you need to do if you want to use Debian's APT,but I think that all you need to do is to create repos in /etc/apt/sources.list as I said before to start using it.If you want you can post the output of
Code:

find / -name apt -print
You can read this too.


All times are GMT -5. The time now is 04:51 AM.