LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2009, 04:37 PM   #1
annab123
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Rep: Reputation: 0
Question 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
 
Old 03-16-2009, 05:34 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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).
 
Old 03-16-2009, 05:43 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Perhaps this link will help a little http://dag.wieers.com/rpm/FAQ.php#B
 
Old 03-16-2009, 05:50 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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).
 
Old 03-16-2009, 06:07 PM   #5
annab123
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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 . Did you try working with this version?

Thanks so much for the fast replies,
Anna
 
Old 03-16-2009, 06:36 PM   #6
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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?

Last edited by alan_ri; 03-16-2009 at 06:51 PM.
 
Old 03-16-2009, 06:45 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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?

 
Old 03-17-2009, 02:28 AM   #8
annab123
LQ Newbie
 
Registered: Mar 2009
Posts: 3

Original Poster
Rep: Reputation: 0
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 . I'll leave it alone for now, as my original problem is solved.

Thanks!
---
Anna
 
Old 03-17-2009, 05:37 PM   #9
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
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.

Last edited by alan_ri; 03-17-2009 at 05:49 PM.
 
  


Reply


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
How to make one rhel5 server control passwords for several rhel5 servers. folkrm Linux - Newbie 3 03-11-2009 03:17 PM
Determining patch level of Redhat RHEL5 vs RHEL5.1 or RHEL4.5-4.6 dfezz1 Linux - Newbie 2 01-23-2009 10:17 AM
apt pinning /etc/apt/apt.conf parent's_basement Debian 5 10-26-2008 06:50 PM
RHEL5 - I have RHEL5 DVD , how i install ofice packages like SPREADSHEET ETC, bharath@linux Linux - Newbie 3 10-12-2008 03:24 PM
apt-get installation on RHEL5 zafar466 Linux - Software 5 08-04-2007 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:29 PM.

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