LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   lenny package in squeeze (https://www.linuxquestions.org/questions/debian-26/lenny-package-in-squeeze-869864/)

baikonur 03-20-2011 08:13 PM

lenny package in squeeze
 
hello all,

I need libnet0 on a squeeze installation, so I can compile nemesis, which unfortunately has not been an active project. It depends on libnet0, which is not in the squeeze repository.

I can compile nemesis, but will it ok to do this the same way with the libnet0 library?

Or should I manipulate the /etc/sources.list to be able to install it from the lenny repositories? (this doesn't sound right...)

Better get the sources? And what happens when I compile it? Can I safely have libnet0 and libnet1 on the same installation?

Any help would be much appreciated.

baikonur

jlinkels 03-20-2011 08:37 PM

You can do various things:

1. Download the .deb files from the Lenny repository. That is nemesis and its dependencies, and instal them in the required sequence with dpkg -i <packagename>. If they install that is fine, if there is any risk of breaking your system, dpkg warns you. Also if dpkg want to de-install your kernel or another 569 packages this is a sign of something going wrong.

2. You could add the Lenny repositories to sources.list and apt-get install -t Lenny <packagename> or apt-get install -t <nemesis-version> <packagename>. If fact this is the automated process of (1). If apt-get think this is no good, it will tell you.

3. You can also compile. There is a wealth of tools for painlessly compiling Debian packages. You'll need the tool which also pulls in dependent source packages. I think the name is build-dep. Pulling in the sources is riskless, and if your package compiles that is great. Just install the created .deb according to (1).

jlinkels

baikonur 03-20-2011 09:46 PM

I did it with dpkg -i

which complained at the first attempt, because of missing dependencies.

I looked into aptitude and it suggested to remove the package. Which felt a bit weird, after all, the dpkg install had not completed.

Well, ok. I removed it again form within aptitude and after providing all dependencies, dpkg -i succeded

thanks much :)


All times are GMT -5. The time now is 06:46 PM.