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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-16-2009, 03:37 PM
|
#1
|
LQ Newbie
Registered: Mar 2009
Posts: 3
Rep:
|
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
|
|
|
03-16-2009, 04:34 PM
|
#2
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
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).
|
|
|
03-16-2009, 04:43 PM
|
#3
|
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
Perhaps this link will help a little http://dag.wieers.com/rpm/FAQ.php#B
|
|
|
03-16-2009, 04:50 PM
|
#4
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
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).
|
|
|
03-16-2009, 05:07 PM
|
#5
|
LQ Newbie
Registered: Mar 2009
Posts: 3
Original Poster
Rep:
|
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
|
|
|
03-16-2009, 05:36 PM
|
#6
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
You can set repos for apt in /etc/apt/sources.list.
Post the output of .
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 05:51 PM.
|
|
|
03-16-2009, 05:45 PM
|
#7
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep: 
|
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?
|
|
|
03-17-2009, 01:28 AM
|
#8
|
LQ Newbie
Registered: Mar 2009
Posts: 3
Original Poster
Rep:
|
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
|
|
|
03-17-2009, 04:37 PM
|
#9
|
Senior Member
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Rep: 
|
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 04:49 PM.
|
|
|
All times are GMT -5. The time now is 09:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|