LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-16-2006, 05:05 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
remove or upg debian packages


How can I remove or upgrade installed package ?
Cant tell u what version I have ( dont know how to do this in Debian which is not my favorite distro... )
Anyway this what I got:
Code:
myserv:/# uname -a
Linux myserv 2.4.24 #1 SMP Sat Jan 31 11:00:37 CET 2004 i686 unknown
I need to have the newest perl installed (ver 5.8.x). So far i have installed 5.6.x.
When I proceed command like this then I rceive:
Code:
/home/maciek# apt-get install perl
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, perl is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 0  not upgraded.
No it's not the newest !!!!!!!

Ok lets remove perl package ( and here is why I dont like Debian):
Code:
dpkg -r perl
dpkg: dependency problems prevent removal of perl:
 apache-common depends on perl5 | perl; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
  Package perl is to be removed.
 apache depends on perl5 | perl; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
  Package perl is to be removed.
 libberkeleydb-perl depends on perl (>= 5.6.1-6).
 libnet-ph-perl depends on perl (>= 5.6.0-16).
 spamassassin depends on perl (>= 5.6.0-16).
 libmd5-perl depends on perl (>= 5.6.0-16).
 libtimedate-perl depends on perl (>= 5.6.0-16).
 perl-modules depends on perl (>= 5.6.1-1).
 openssl depends on perl.
 libmailtools-perl depends on perl (>= 5.6.0-16).
 libnet-snpp-perl depends on perl (>= 5.6.0-16).
 libnet-dns-perl depends on perl (>= 5.6.0-16).
 mc-common depends on perl.
 libmime-base64-perl depends on perl (>= 5.6.0-21).
 webmin depends on perl.
 libdigest-hmac-perl depends on perl.
 libnet-ssleay-perl depends on perl (>= 5.6.1-7); however:
  Package perl is to be removed.
 libdigest-sha1-perl depends on perl (>= 5.6.0-21).
 proftpd-common depends on perl.
 libnet-perl depends on perl (>= 5.6.0-16).
 libdigest-md5-perl depends on perl (>= 5.6.0-21).
 libauthen-pam-perl depends on perl (>= 5.6.1-5).
 webmin-core depends on perl.
 apache-common depends on perl5 | perl; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
  Package perl is to be removed.
 apache depends on perl5 | perl; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
  Package perl is to be removed.
 dpkg-dev depends on perl5; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
 libnet-telnet-perl depends on perl5; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
 kernel-package depends on perl5; however:
  Package perl5 is not installed.
  Package perl which provides perl5 is to be removed.
dpkg: error processing perl (--remove):
 dependency problems - not removing
Errors were encountered while processing:
 perl


Have anyone got idea how to remove my current pear package and force apt-get to install really newest perl5.8.x ?
 
Old 07-16-2006, 11:28 AM   #2
jameslaw
Member
 
Registered: Nov 2005
Location: Trento, Italy
Distribution: Debian:testing, Ubuntu
Posts: 33

Rep: Reputation: 15
It seems like the problem you're running up against is that the newest version in the Debian repository (which is what apt-get fetches) is not the absolutely newest version available. This is commonly the case, since it takes a while for a version of each package to migrate into and through the versions in the Debian repositories. You can check packages.debian.org to see what the latest version in each of the Debian versions is. For instance, it looks like the version of Perl in testing (etch) is 5.8.8-4.

If you want a newer version than the one in the repository you will probably need to download a source or binary package and install it by hand. (Remove the current package using apt-get remove first.) I've only been using Debian about a year, so I trust someone will correct me if I'm wrong. There is some way to use packages from other Debian versions (like using testing packages in stable), but I'm not that sophisticated. I use testing (etch) because I want newer packages than stable (sarge), but I don't want to deal with the unstable (sid) version. Works for me.

You should be able to figure out which Debian version you are using by checking which repositories are listed in the file /etc/apt/sources.list. Sarge<=>stable, etch<=>testing, sid<=>unstable.

Hope that helps. Good luck,

J
 
Old 07-31-2006, 04:47 PM   #3
xstefanox
Member
 
Registered: Mar 2005
Location: São Paulo - Brazil
Distribution: Debian
Posts: 45

Rep: Reputation: 15
As PERL is an important Debian package and many other packages depend of it, I would think twice before I'll try anything, but I think you could find some packages in the www.backports.org website. They maintain some Unstable packages and compile them with old libraries, making them disposable for Sarge. =)
 
Old 07-31-2006, 05:20 PM   #4
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
I don't know why people have so much trouble understanding that Stable (Sarge) is just that ... stable. It's not intended to have new packages added. If you do, the odds are good that something will break. A newer version of Perl is not in Sarge's repositories because Sarge is "stable." ... It's done ... It's perfect for it's job.

If you want to add newer packages, you should be running Etch.
 
  


Reply



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
remove packages acrors Fedora 3 09-25-2004 07:08 AM
Script to Remove a List of Debian Packages zael Programming 6 05-27-2004 05:36 PM
UPG xfree86-4.4.0, vi question nixel Linux - Software 5 05-13-2004 07:28 PM
Mandrake Update/Install Packages/Remove Packages wslyhbb Mandriva 2 03-15-2004 09:43 AM
Cannot Remove Packages!! sbb Linux - Newbie 1 08-22-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:10 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
Open Source Consulting | Domain Registration