Ask Your Question

How does Fedora (Linux) upgrade applications while they are in use?

asked 2017-01-09 01:52:30 -0500

powergame gravatar image

updated 2017-01-09 01:53:57 -0500

From Windows days, I understand that typically an application needs to be closed before it can be updated by another (newer) version. But, when I run dnf update in Fedora, it does not seem to require applications to be closed or complain at all that they are open. So, how does Fedora (or Linux in general) update apps that are in use without closing them first?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-09 03:22:08 -0500

sideburns gravatar image

In Linux, when you delete an open file the space it occupies isn't released until all programs using it are closed. In the case of a program, that would mean that it doesn't go away until you close it. Thus, you can update a running program, but you'll still be using the old version until you close and reopen it. I'd presume, however, that if you update something like xterm, that can have multiple copies running, you could have both an old and a new version running at the same time, but I've never tested it.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-01-09 01:52:30 -0500

Seen: 152 times

Last updated: Jan 09 '17