LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 07-02-2009, 04:42 PM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
apt-get is great, but why not svn?


I just went to update my Ubuntu system, and realized how similar in spirit

Code:
sudo apt-get install dist-upgrade
is to

Code:
svn update
I understand that packages are primarily binaries, and svn repos primarily ASCII, but it seems like a diff-patch-based package management utility (e.g. svn) could be a "cool" thing to have.

apt(itude) works great -- not trying to suggest I'm unpleased with it. Where would our lives be without it, after all.

Thoughts?
 
Old 07-02-2009, 04:51 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
It is true that many software applications are available via svn but that system is better suited to developers obtaining a generic configuration than to system administrators obtaining a configuration that is optimized to work on their distribution.

The APT software suite is geared to ensuring that dependencies for applications are met without breaking other applications or system functions. The distribution developers (presumably) invest a great deal of time to configure software applications to install and run in their specific environment (their distribution). This is the reason that you are often better off installing an application from the software repository of your distribution than from the application's web site. The APT package manager, as well as YUM and rpm and SMART and all of the other package managers, do not simply untar a generic application into the system directories. They maintain a representation of your system and resolve inconsistencies between the files of different applications and between system files and application files.

I'll stop here since I don't want to write a book on the subject.
 
Old 07-02-2009, 06:05 PM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Romoved: posted twice in error (sorry!)

Last edited by rjlee; 07-02-2009 at 06:06 PM. Reason: Romoved: posted twice in error (sorry!)
 
Old 07-02-2009, 06:05 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
In terms of bandwidth, downloading only a diff between two packages is a rather similar concept (but there are always packages that want to do things that aren't simple diffs). SVN would help in downloading less data, but - to paraphrase and elaborate on stress_junkey - downloading the data is the almost the easiest part of a package manager's job: maintaining dependencies and getting the installers/updaters to work reliably even across different hardware is much more work.

I'm sure that I read somewhere that recent RPM systems can send updates based on incremental tar files (although I can't find a reference off hand so I may be wrong).

Supporting a similar feature in Ubuntu is also on the cards: https://bugs.launchpad.net/ubuntu/+s...apt/+bug/21837

Incidentally, subversion copes absolutely fine with binary files.
 
Old 07-02-2009, 06:20 PM   #5
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
svn update and apt-get dist-upgrade are similar indeed. It is not a problem if you want to make your machine a updated copy of whatever is on the svn server.

However... I have a feeling dist-upgrade is by far not the most frequently used apt-get command.

The main goal of apt-get is to check and resolve dependencies, especially during install of a new package or an install of a single package upgrade. What would happen if you would update just one program from svn which depends on other programs or library versions? And those programs depend on others as well?

It is the strength of apt and perhaps any package manager to keep the system in a stable state where no depencies exist. That is exactly what svn does not do as it allows you to check out any version onto your system just as you say. Which is great for a version control system, but catastrofal for a package manager.

jlinkels
 
Old 07-02-2009, 07:39 PM   #6
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
In short, RCS's are not Package Managers. Just like file systems are not databases (yeah, I know that comparisons are never 100% fair, but...).

RCS's are not mean suitable for binary files, and no project that I know hosts binary releases on svn nor a similar system. The closes I could think of is to build a clone of gentoo using only live ebuilds that will build your programs from svn. Not quite what you are looking for though, I wouldn't serve your purpose of saving time and bandwidth at all
 
Old 07-08-2009, 05:43 PM   #7
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Original Poster
Rep: Reputation: 211Reputation: 211Reputation: 211
The dependency handling is indeed the big difference.

This was the benefit I was after, I believe:

Quote:
I'm sure that I read somewhere that recent RPM systems can send updates based on incremental tar files (although I can't find a reference off hand so I may be wrong).

Supporting a similar feature in Ubuntu is also on the cards: https://bugs.launchpad.net/ubuntu/+s...apt/+bug/21837
 
  


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
copy svn working dir without svn hidden dirs and files? erinspice Linux - Software 4 03-29-2011 05:58 PM
anon svn read-only over apache: '.svn/entries': No such file hedpe Linux - Software 2 04-29-2009 05:31 AM
LiveCD Mepis: When will we have a apt-get install working? would be great !! :) frenchn00b MEPIS 8 08-06-2008 05:45 AM
svn checkout -bash svn command not found Anauj0101 Linux - Newbie 6 04-20-2008 05:50 PM
Apt-get, a great tool, but... hondo Linux - General 39 08-02-2006 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 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