LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 08-14-2013, 01:11 AM   #1
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 141

Rep: Reputation: 15
For servers - switch from Debian to CentOS - your thoughts


I've run Debian (NOT Ubuntu) for years. I've had a number of problems with trying to upgrading certain packages like Postgresql because they rely on libraries or other packages that come on later versions of the distro. For example, I just tried to upgrade to PSQL 9 but I couldn't install it since I don't have gcc-4.4. In the past I have used Ubuntu for desktops and had the same issue.

Another place I worked at used CentOS and we didn't have much problems with libraries and software not installing. Is this an issue with Debian, or is it common among distros?

I'm not interested in compiling from source for packages (more library headaches) and I can't upgrade distros on production servers every few months. Since the whole point of servers is to be modular, it should be a relatively common task. Any suggestions?
 
Old 08-14-2013, 01:21 AM   #2
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64&i386, Raspbian Jessie, various VMs
Posts: 3,208

Rep: Reputation: 756Reputation: 756Reputation: 756Reputation: 756Reputation: 756Reputation: 756Reputation: 756
In general you'll never get the latest version of any package in a stable distribution, since they rely upon tried and tested packages. Looking at Distro Watch I'd say you'd be in the same position with CentOS:
http://distrowatch.com/table.php?distribution=debian
http://distrowatch.com/table.php?distribution=centos
 
1 members found this post helpful.
Old 08-14-2013, 06:12 AM   #3
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 141

Original Poster
Rep: Reputation: 15
I was afraid of that. Okay, I guess it's just a pain in the neck no matter what. It just strikes me as silly that I have to upgrade the entire OS just to get one or two packages sometimes.
 
Old 08-14-2013, 11:34 AM   #4
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,955

Rep: Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767
Are you sure you really need to "upgrade" them? If Debian and Red Hat use a particular version, it's because it the latest version they consider sufficiently tested, or it depends on something that's the latest version they consider sufficiently tested.
 
Old 08-14-2013, 12:08 PM   #5
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,908

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Here is an article that explains the concept in detail (written for Red Hat but also applies to CentOS, Debian Stable, Ubuntu LTS, etc.)

https://access.redhat.com/security/u...g/?sc_cid=3093

However, are you aware that Debian has both Testing and Unstable branches that offer newer versions of applications to users willing to accept the risk of less-tested software?

http://www.debian.org/releases/testing/
http://www.debian.org/releases/sid/

In other words, Debian gives you the choice of stable vs. "rolling release" depending on your needs and preferences.
 
Old 08-14-2013, 12:17 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux
Posts: 2,831
Blog Entries: 1

Rep: Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892Reputation: 892
Quote:
However, are you aware that Debian has both Testing and Unstable branches that offer newer versions of applications to users willing to accept the risk of less-tested software?
And Centos/SL is the same way... if you start installing rpmforge/epel/rpmfusion, you can get newer program versions, but they are not tested to EL level, and are not blessed by Redhat themselves.
 
Old 08-14-2013, 05:47 PM   #7
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 141

Original Poster
Rep: Reputation: 15
Not entirely sure about upgrades

DavidMcCann - This is what happened this time; I needed to install Postgresql 9 on a Debian VM so we could test it before putting it on our production server. The Debian install was from last December so it was Squeeze not Wheezy. The only install available was 8.4, and even THAT wouldn't install because I had the wrong version of gcc (I needed something like 4.4.6.4 and my VM had something like 4.4.5.8 installed). Since upgrading gcc didn't work and this was just a VM, I figured my best bet was to upgrade to Wheezy, then install. Previously I found a Postgre 9.1 .deb file but the Debian site recommended using apt-get instead of installing the .deb, so I followed the recommendation. In a situation like this, what would you recommend?

Snowpine - thank you, I'll read that. I am aware of the testing verses stable versions. I figured if I installed something via apt-get it would be the stable version.
 
Old 08-14-2013, 06:15 PM   #8
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,908

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
Postgresql is at version 9 in Debian Stable (Wheezy) so you can easily install it with a single command.

http://packages.debian.org/wheezy/postgresql

In your scenario from last year, when you wanted to test 9 (but Wheezy hadn't been released yet, and postgresql was at 8 in Stable/Squeeze) you could have used Testing (Wheezy, at the time) or simply used Backports.

http://packages.debian.org/squeeze-backports/postgresql

Quote:
You are running Debian stable, because you prefer the Debian stable tree. It runs great, there is just one problem: the software is a little bit outdated compared to other distributions. This is where backports come in.

Backports are packages taken from the next Debian release (called "testing"), adjusted and recompiled for usage on Debian stable. Because the package is also present in the next Debian release, you can easily upgrade your stable+backports system once the next Debian release comes out.
Frankly, gcc shouldn't even enter into the equation. If you are installing supported packages from the Debian repos using apt-get or aptitude, then you will never have dependency issues and will not need to compile.
 
Old 08-14-2013, 06:39 PM   #9
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 141

Original Poster
Rep: Reputation: 15
Snowpine, thanks for the info. With a little more research I could have found out what was available. Thanks.
 
  


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
Seeking thoughts RE: moving from CentOS+VMware to.... Xen? KVM? GenePoole59 Linux - Virtualization and Cloud 4 07-22-2010 12:05 PM
Thoughts wanted on having to switch distributions toothsome Linux - Newbie 3 06-21-2010 05:55 PM
Unifying permissions between two servers (CentOS + Webmin/CentOs +Cpanel) and rsync d60eba Linux - Server 1 01-01-2010 12:55 PM
Switch or Router? (3 servers) Stephan_Craft Linux - Networking 13 11-04-2009 11:52 AM
How to switch off all X-Servers.. RetepNamenots Linux - Software 3 10-19-2006 03:53 PM


All times are GMT -5. The time now is 07:00 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration