LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-07-2004, 09:37 PM   #1
mtvoid
LQ Newbie
 
Registered: Sep 2003
Location: New Delhi, India
Distribution: Debian GNU/Linux
Posts: 6

Rep: Reputation: 0
How do linux systems upgrade packages whose files are in use?


I've been running gnu/linux on my system for many months now. One of the features I like best is the great package management system (I use debian, and apt simply rocks!). Keeping the system up-to-date is a breeze, and I've never faced a single problem while doing so. Well, there is this one question I have, and I can't seem to find the answer anywhere. Let's say, I am running an app, a never version of which is available. So I decide to retrieve and install the upgraded package. Now, the files for this app, including its own executable, will get overwritten by the newer versions, right? But this doesn't seem to be a problem for the existing program that is already running. Indeed, if I close and restart the same program, the newer version of it starts up. This seems to work for any package, be it a small music player, or even a critical package like libc6. I never get a message like 'The files that need to be overwritten by this newer package are in use, please close the applications that may be using them' (something most people who have used windows have experienced quite often).
So, how is the linux file access system different, that it allows such behind-the-scenes upgrades to magically take place? Is it because all running apps and libraries are completely loaded into memory? Anyway, I hope somebody familiar with the inner workings could give me some insight into this.
Regards,
MT
 
Old 02-07-2004, 10:02 PM   #2
Ztyx
Member
 
Registered: Dec 2001
Location: Stockholm, Sweden
Distribution: Ubuntu, Kubuntu and Debian
Posts: 338

Rep: Reputation: 30
Well, infact it only removes a file when it is not in use. It's as simple as that =)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syncronizing files between multiple systems Maldain Linux - General 2 06-14-2005 03:46 PM
Noob files systems question brickbat Linux - Software 1 09-22-2004 02:32 PM
Sharing files over a LAN between Linux only systems. Lokheed Linux - Networking 4 09-18-2004 06:15 PM
Defrag...and ext2/3 files systems. oicdn Linux - General 1 01-09-2004 02:10 PM
Sharing files with windows systems using samba ashpai Linux - Networking 3 02-28-2001 11:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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