LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install apt-get (https://www.linuxquestions.org/questions/linux-newbie-8/install-apt-get-646660/)

zakir_123 06-03-2008 08:16 AM

install apt-get
 
i am trying to install apt in my centos 5.
wget http://apt-rpm.org/releases/apt-0.5.15lorg3.tar.bz2
tar -vxf apt-0.5.15lorg3.tar.bz2
cd apt-0.5.15lorg3
./configure
then i get this error msg
configure: error: Can't find rpmlib.h
any idea why?

lucazorzi 06-03-2008 08:33 AM

Maybe you need RPM's developmente headers.

knudfl 06-03-2008 09:18 AM

The package name is 'rpm-devel'

Rgds

zakir_123 06-04-2008 12:59 AM

thank you knudfl
i have installed apt. but i get this error
E: Could not open file /etc/apt/rpmpriorities - open (2 No such file or directory)
E: could not open package priority file /etc/apt/rpmpriorities

uncle_philip 06-04-2008 01:11 AM

if you are under Centos5,
wget http://apt.sw.be/packages/apt/apt-0.5.....
and
wget http://dag.wieers.com/rpm/packages/rpmforge-release/.....
... means, I forgot the name.
Then, install that 2 files, you will be fine.

knudfl 06-04-2008 09:08 AM

The first link #5 didn't work for me, found another :
http://rpm.pbone.net/index.php3/stat....i386.rpm.html
(One of the links on this site works)

P.S.If these files are asked for, an empty file will do:
(usr)/sbin/update-rc.d
/var/lib/dpkg/status
/var/lib/dpkg/available

zakir_123 06-05-2008 07:25 AM

once again thankx knudfl
u r my hero.
by d way this link works
ftp://ftp.pbone.net/mirror/dag.wieer....test.i386.rpm

now i have que.
one of my server was configured by another person. in that sever LAMP install. server's os is centos and squid is also installed + php - 5.2.

if i apt-get install php5 libapache2-mod-php5. will it delete my previous php and install new php ?

oh no
i get E: Couldn't find package apache2
when
apt-get install apache2 php5 libapache2-mod-php5

knudfl 06-05-2008 09:11 AM

Package name is httpd, example shown :
CentOS 5 httpd-2.2.3-11.el5_1.centos.3.i386.rpm
is from
http://rpm.pbone.net/index.php3/stat....i386.rpm.html

Rgds
P.S.: I also wondered, why not "apache", but "httpd"

lazlow 06-05-2008 10:42 AM

Any particular reason you are not using yum?


All times are GMT -5. The time now is 11:24 AM.