Linked by Thom Holwerda on Mon 5th May 2008 21:00 UTC
OSNews, Generic OSes Ever since I started using computers, I've been baffled by the relative clumsiness of installing applications. Whether we are talking the really old days (launching the Rambo game off a tape), the '90s (running Keen or using installers in Windows 95), or the modern days (still those installers, but now also package management and self-contained applications); it's all relatively cumbersome, and they all have their downsides. I decided to put my money where my mouth is, and come up with my idealistic, utopian method of installing, running, updating, and uninstalling applications.
E-mail Print r 4   · Read More · 69 Comment(s)
Order by: Score:
Call me old-fashioned, but
by rockwell (2.68) on Mon 5th May 2008 21:10 UTC
rockwell
Member since:
2005-09-13
Fans: 2

//Whether we are talking the really old days (launching the Rambo game off a tape)// er ... i thought the "really old days" was when I typed three dozens lines of Pascal into a PDP-11 in order to get a simple tax calculation to run ...tapes? You're high-tech!

RE: Call me old-fashioned, but
by fretinator (5.36) on Mon 5th May 2008 21:13 UTC in reply to "Call me old-fashioned, but"
fretinator Member since:
2005-07-06
Fans: 6

//Whether we are talking the really old days (launching the Rambo game off a tape)// er ... i thought the "really old days" was when I typed three dozens lines of Pascal into a PDP-11 in order to get a simple tax calculation to run ...tapes? You're high-tech!


Yeah, punch cards and paper tape baby! None of that high-tech magnetic media for me!

Edited 2008-05-05 21:14 UTC

RE[2]: Call me old-fashioned, but
by umccullough (3.72) on Mon 5th May 2008 21:31 UTC in reply to "RE: Call me old-fashioned, but"
umccullough Member since:
2006-01-26
Fans: 24

"//Whether we are talking the really old days (launching the Rambo game off a tape)// er ... i thought the "really old days" was when I typed three dozens lines of Pascal into a PDP-11 in order to get a simple tax calculation to run ...tapes? You're high-tech!


Yeah, punch cards and paper tape baby! None of that high-tech magnetic media for me!
"

Give him a break, he hasn't even been alive for 3 decades yet (IIRC) ;)

RE: Call me old-fashioned, but
by bosco_bearbank (2.04) on Tue 6th May 2008 10:39 UTC in reply to "Call me old-fashioned, but"
bosco_bearbank Member since:
2005-10-12
Fans: 0

... i thought the "really old days" was when I typed three dozens lines of Pascal into a PDP-11 in order to get a simple tax calculation to run ...tapes? You're high-tech!


No, the "really old days" were when we had to use toggle switches to enter the code to boot the computer. And, if my memory serves me correctly, computer tapes predate Pascal

GoboLinux
by Invincible Cow (2.56) on Mon 5th May 2008 21:31 UTC
Invincible Cow
Member since:
2006-06-24
Fans: 0

Isn't this just a less elegant version of GoboLinux with added live (and I repeat -- they really are live) queries?

RE: GoboLinux
by glubamazing (1.33) on Mon 5th May 2008 22:38 UTC in reply to "GoboLinux"
glubamazing Member since:
2008-05-05
Fans: 0

Isn't this just a less elegant version of GoboLinux (...)?

Quite right. This does not seem quite that utopian - everything to do this is already there. The reason nobody has set up something quite like it, is that its not such a good idea after all.

RE[2]: GoboLinux
by Thom_Holwerda (Staff) on Mon 5th May 2008 22:48 UTC in reply to "RE: GoboLinux"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

Quite right. This does not seem quite that utopian - everything to do this is already there.


Oh? You do know what GoboLinux is, right?

The reason nobody has set up something quite like it, is that its not such a good idea after all.


Care to elaborate? That's four pages of detailed explanations and user scenarios you just read, and all you can counter it with is "not such a good idea"?

RE[3]: GoboLinux
by l3v1 (3.32) on Tue 6th May 2008 12:38 UTC in reply to "RE[2]: GoboLinux"
l3v1 Member since:
2005-07-06
Fans: 1

That's four pages


It doesn't matter how long it is. A good idea is a good idea in two lines and in ten pages. Just because it can be detailed for hours doesn't make any idea good. Note, with that I don't say this particular idea is no good.

The only thing is, it's hard to satisfy everybody's taste. E.g. I don't like the Mac-style of application installing, I prefer dpkg, and I don't like the folder names with compulsory capitals, and so on. That doesn't mean the concept itself is wrong.

RE[4]: GoboLinux
by shevegen (1) on Tue 6th May 2008 13:04 UTC in reply to "RE[3]: GoboLinux"
shevegen Member since:
2008-04-04
Fans: 0

'Note, with that I don't say this particular idea is no good. '

But you are missing the point of the above poster.

He critisized the guy that said Gobolinux is not a good idea, but that other guy did not give ANY REASON AT ALL.

Noone can act upon FUD ;)

And btw, this suggestion here is different from Gobolinux in a few key areas. I am not saying it is good or bad here, but it is obviously that there are a few people who neither read this, nor know about Gobolinux - or opt to simply not give any reasons at all why something is "good" or "bad".

It is pointless to debate about opinions without people giving any REASONS behind them.

RE: GoboLinux
by wannabe geek (2.84) on Mon 5th May 2008 23:13 UTC in reply to "GoboLinux"
wannabe geek Member since:
2006-09-27
Fans: 0

It looks somewhat similar, but Gobolinux is an attempt to achieve modularity within the typical GNU/Linux paradigm, where there's no distinction between the base system and the applications, that is, any package can depend on other packages that may or may not be present, and it can fullfill the requirements of yet other packages.

On the other hand, Thom's proposal assumes a base system, which makes it more like PC-BSD or Mac OS X. Once you have a system/applications distinction, package management is almost trivial. But then all distros would have to agree on one base system, which would either kill the well-known configurability of GNU/Linux (as in being able to have a very small installation) or be such a small system that lots of duplicated libraries would coexist, among other problems. The LSB guys have been trying to do just that for years, and I don't know how much success the've had, but the fact is that third-party program packages are still distro-specific. TANSTAAFL :p

RE[2]: GoboLinux
by shevegen (1) on Tue 6th May 2008 13:09 UTC in reply to "RE: GoboLinux"
shevegen Member since:
2008-04-04
Fans: 0

'The LSB guys have been trying to do just that for years'

No they have not.
The LSB extends upon the FHS. How can they achieve AppDirs (or AppDir like solutions) when they extend the FHS?

RE[3]: GoboLinux
by wannabe geek (2.84) on Tue 6th May 2008 13:54 UTC in reply to "RE[2]: GoboLinux"
wannabe geek Member since:
2006-09-27
Fans: 0

Well, I meant that the LSB project tries to stablish a core system (including specific libraries), so that third party application packages can just depend on lsb-core. For instance, take this section:

http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB...

"Packages shall have a dependency that indicates which LSB modules are required. [...] Packages shall not depend on other system-provided dependencies. They shall not depend on non-system-provided dependencies unless the package provider also makes available the LSB conforming packages needed to satisfy such dependencies. "

RE[4]: GoboLinux
by TemporalBeing (1.68) on Tue 6th May 2008 17:11 UTC in reply to "RE[3]: GoboLinux"
TemporalBeing Member since:
2007-08-22
Fans: 0

Well, I meant that the LSB project tries to stablish a core system (including specific libraries), so that third party application packages can just depend on lsb-core. For instance, take this section:

http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB...

"Packages shall have a dependency that indicates which LSB modules are required. [...] Packages shall not depend on other system-provided dependencies. They shall not depend on non-system-provided dependencies unless the package provider also makes available the LSB conforming packages needed to satisfy such dependencies. "


Yes, LSB tries to establish a core. And most of it is okay, but it still doesn't go quite far enough. Personally, I think they need to get RPM out of LSB and replace it with something like (though not necessarily) Autopackage. It would make the LSB a far better standard, and would really help towards Linux on the Desktop too.

RE: GoboLinux
by hobgoblin (2.44) on Tue 6th May 2008 04:10 UTC in reply to "GoboLinux"
hobgoblin Member since:
2005-07-06
Fans: 0

the thought crossed my mind as well...

RE: GoboLinux
by butters (7.08) on Tue 6th May 2008 07:24 UTC in reply to "GoboLinux"
butters Member since:
2005-07-08
Fans: 34

Isn't this just a less elegant version of GoboLinux?



No, it's an elaboration on MacOS X. The system bundle is presumed to provide a generous set of shared libraries and prolonged ABI stability -- no small feat.

As with MacOS, any library excluded from the stable system bundle must be statically linked into all dependent program bundles, each of which may contain a different outdated version of the library.

The main differences from MacOS are the semantic filesystem and the bundle repository, along with the minor hierarchy change. It wouldn't be difficult to prototype this system for OS X using Spotlight or perhaps Nepomuk.

I have one question for Thom: I assume the desktop environment would be part of the system bundle so that its libraries could be shared amongst program bundles. So where on the filesystem would the per-user settings for such system components live? For example, does my wallpaper belong in /Settings/butters/System or /System/Settings/butters?

This is non-sense
by detto (4.5) on Mon 5th May 2008 21:32 UTC
detto
Member since:
2007-11-25
Fans: 0

"Applications in Mac OS X are generally not easy to remove at all, because they leave a trail of files around outside of /Applications that normal users rarely encounter. Over the course of time, this can amount to quite the mess."

The only files that are lying around are:
- plist for preferences (like .dot files in ~/ in Linux)
- cache files
- sometimes a folder in "Application Support"
That's all. You can easily search for the name of the program with Spotlight/Finder to remove those items, though it is NOT necessary because the only downside of those files lying on your disk would be waste MB... you have to run thousands of apps and deleting them to call it a mess.


"In addition, Mac OS X provides no way of updating applications in a central way, resulting in each application in OS X having its own updater application; hardly the user-friendly and consistent image Apple tries to adhere to."

If an application is started it will inform you about a new version, quite simple. Most of these dialogs are pretty consistent to each other too. And there are applications or even widgets that can check all your applicatins for updates, though it isnt really necessary, because.. when u run it it gets updated / will inform you. It would be nice to see Apple implementing this mechanism that those update-applications use into their own software-updater. But as said.. not really necessary.

RE: This is non-sense
by TechGeek (4.48) on Mon 5th May 2008 22:34 UTC in reply to "This is non-sense"
TechGeek Member since:
2006-01-14
Fans: 1

The big problem with the Mac is that the apps arent consistent. Not all auto update themselves. Just like in Linux some software has to be compiled. Still, it would be nice if the world could agree on one single way to notify and put out updates. RSS maybe? In a corporate setting, repos work well since its pretty easy to make packages of something that needed to be compiled. But for single users adding a lot of repos leads to package poisoning.

If only...
by wigginz (1.7) on Mon 5th May 2008 22:37 UTC
wigginz
Member since:
2006-03-03
Fans: 0

I so wish I had time to read this Thom. Like many of us, package management is the first and foremost reason we "advanced" Linux users will choose a distribution. Well, actually since I discovered Debian I've never looked back except for the occasional brush with Yum... and thinking that Red Hat has had APT as the example for YEARS, and Yum is the crap they came up with?!?!?

Anyway, care to make it a podcast or something that I can put on and tune in and out while I'm coding? Mostly kidding, that's a lot of work... would be more efficient in the end if I just read it ;) Anyway, nice article, love the exclusives.

Edited 2008-05-05 22:38 UTC

RE: If only...
by shevegen (1) on Tue 6th May 2008 13:08 UTC in reply to "If only..."
shevegen Member since:
2008-04-04
Fans: 0

'Like many of us, package management is the first and foremost reason we "advanced" Linux users will choose a distribution.'

Not me. I guess I am not alone though. Personally, I simply refuse to use solutions that do not give me the _OPTION_ of having something like AppDirs.

AppDirs are simply a better way to manage applications than FHS, period. If I want to have something removed, i go kill the dir. I dont _want_ to DEPEND on a package manager in order to uninstall something again.

Want different versions of same apps? Use Gentoo
by azrael29a (1.5) on Mon 5th May 2008 23:14 UTC
azrael29a
Member since:
2008-02-26
Fans: 0

If you want to have different versions of the same programs then use Gentoo. Portage has a nice feature called SLOTs.

Designed for Haiku?
by leavengood (1.85) on Mon 5th May 2008 23:16 UTC
leavengood
Member since:
2006-12-13
Fans: 2

Hi Thom,

One of my many pet projects for Haiku has been a new "package format" for applications as well as a consistent updating mechanism and some sort of central application repository.

This might make a good initial design, since you make use of the live queries that we will have in Haiku. Overall it sounds pretty good.

I think the permissions system you describe could also be implemented.

But I think the file system layout will need to remain in the standard BeOS format we are inheriting. But I still think much of your design could still be used for that. For one thing I don't see why you need a separate /Settings hierarchy when you could just have /Users/User 1/Settings or in Haiku /boot/home/user/config. Of course the multi-user aspects of Haiku are still in flux and probably won't be sorted out until R2.

RE: Designed for Haiku?
by Thom_Holwerda (Staff) on Mon 5th May 2008 23:35 UTC in reply to "Designed for Haiku?"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

This might make a good initial design, since you make use of the live queries that we will have in Haiku. Overall it sounds pretty good.


You're right Ryan, this whole thing actually started out as a discussion in #haiku a long time ago. I was just musing aloud at how you could use the attributes and live queries in BFS to manage applications, and from there, this whole idea started to grow.

So it makes sense that my ideas fit Haiku so well.

For one thing I don't see why you need a separate /Settings hierarchy when you could just have /Users/User 1/Settings or in Haiku /boot/home/user/config.


The reason I chose for a separate hierarchy is because I want the /User/User 1 directory to be strictly a directory for the user's documents, movies, photos, pr0n, and so on. I'm someone with a strong inclination towards order and cleanliness, so you can imagine why I'd like to not put settings files into the home directory.

And thanks for the compliments ;) . I've spent a lot of time on this proposal, and I believe I'm only scratching the surface of what attributes+live queries+program bundles can equate to. If you want to discuss this in more detail for whenever the package management plans for R1+1 come up, feel free to contact me, I'd love to participate in that discussion ;) .

RE[2]: Designed for Haiku?
by renox (2.68) on Tue 6th May 2008 07:44 UTC in reply to "RE: Designed for Haiku?"
renox Member since:
2005-07-06
Fans: 1

I don't think that separating the user and its setup configuration files is a good idea: this means that when you want to backup your account, you need to save two directories not one..

As for the cleaness point of view as long as all the configuration files are in the setting directory, I don't think that this is dirty.

That said, I've been convinced recently that purely hierarchical file is impossible to get 'right' so if the user documents and his configuration file are tagged by his login name (automatically) then the backup of the user's data becomes far more easy..

RE[2]: Designed for Haiku?
by Kroc (3.64) on Tue 6th May 2008 08:15 UTC in reply to "RE: Designed for Haiku?"
Kroc Member since:
2005-11-10
Fans: 14

I always see my User folder as "everything that makes this computer unique to me". That includes my settings, so I can backup just one folder, and even move it to another computer and log in with everything there.

Locking still necessary
by RandomGuy (3.44) on Mon 5th May 2008 23:44 UTC
RandomGuy
Member since:
2006-07-30
Fans: 2

Locking would still be necessary because while queries are fast, installing is not.
Let's say you use one query to install program P and start another query and uninstall library L (something P depends on) along with all older programs that need L.

There are two ways out of this:
a) Using a more fine grained locking along the lines of "install anything you like but make sure not to destroy L since P (currently being installed) will need it". What, however, if you said install P from vendor V and while it was installing told the computer to remove all programs of vendor V. I'm almost sure no matter how smart the algorithm is there'll still be situations where it has to say "Encountered Conflict C, do you want to do x or y?"

b) Making every program completely self contained.
This would have HUGE security implications.
A defect was found in a library that 100 of your applications use? Well, that's to bad, you have to reinstall them all.

You can of course draw the line at some arbitrary point and say this lib is used 'a lot', so it's shared.

In short, while your idea sounds good I believe it has tons of details, corner cases, and trade offs that still need to be sorted out.
Furthermore, it can only be realized embedded in a bigger ecosystem. To revisit the example with a defect in a lib, developers could tag their applications like "works with version x of this library" in a way that the program could automatically tell you "vulnerability found, switching to fixed version of lib L" or "vulnerability found, program not yet tested with safe version of L, do you want to upgrade and risk a crash or keep running this unsafe program".

In addition, your system is still centralized.
There needs to be someone or some server to say "No, malwareGuy, you cannot call this 'Paint 6', there's already 'Paint 5' and you didn't write it".

Somebody has to decide what goes on the server and what doesn't.

I could go on and on but I think you get the point:
The idea is good but the devil is in the details.

RE: Locking still necessary
by Thom_Holwerda (Staff) on Tue 6th May 2008 10:05 UTC in reply to "Locking still necessary"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

Somebody has to decide what goes on the server and what doesn't.


The server?

Who says people can't set up their own server for distributing program bundles? It wouldn't be too hard, as long as the file system on the server preserves the attributes.

I also envision a set of command line tools that allow you to compare/update program bundles. Something like:

$ compare "/Programs/Garden Designer.bundle" "ftp.stuff.org/pub/bundles/Garden Designer.bundle"

Output:

$ /Programs/Garden Designer.bundle:438
$ ftp.stuff.org/pub/bundles/Garden Designer.bundle:439

RE[2]: Locking still necessary
by RandomGuy (3.44) on Tue 6th May 2008 16:54 UTC in reply to "RE: Locking still necessary"
RandomGuy Member since:
2006-07-30
Fans: 2

Doesn't every program need a unique identifier?
How do you make sure that no two programs can have the same identifier if everybody can set up a server and name/tag the apps as he pleases?

RE[3]: Locking still necessary
by Thom_Holwerda (Staff) on Tue 6th May 2008 17:00 UTC in reply to "RE[2]: Locking still necessary"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

Doesn't every program need a unique identifier?
How do you make sure that no two programs can have the same identifier if everybody can set up a server and name/tag the apps as he pleases?


They're not identifiers, they're values stored as an attribute. Even if you have ten billion million attributes with value 345, if they belong to different files, that simply doesn't matter.

RE[4]: Locking still necessary
by RandomGuy (3.44) on Tue 6th May 2008 21:36 UTC in reply to "RE[3]: Locking still necessary"
RandomGuy Member since:
2006-07-30
Fans: 2

Maybe I just misunderstand what you say but aren't all these attributes together sort of an identifier?

So you could have two files with attributes
program=paint
vendor=ms
version=4.1
patch_level=127
...

and if they contained different binaries it would be a big problem. You could, of course, add mechanisms like checksumming the binaries and so on.
But then again you'd need a central server/group of servers that tell the user that a program with attributes x and y should have checksum z.
Am I missing something?

Hand waving
by AdamW (3.4) on Mon 5th May 2008 23:53 UTC
AdamW
Member since:
2005-07-06
Fans: 13

Nice try, Thom - if you're just reading it casually you almost miss the hand-waving about binaries that don't belong in any particular 'program bundle', and about the issue of shared libraries, which is of course the big drawback of the OS X system that you *don't* mention (because it persists in your vision). If you use shared libraries, you have a reliance on your vendor (situation with all current Linux distributions). If you don't, you have security issues and ancient bugs that were fixed long ago cropping up all over the place (situation with Windows and OS X).

RE: Hand waving
by Moulinneuf (3.08) on Tue 6th May 2008 09:11 UTC in reply to "Hand waving"
Moulinneuf Member since:
2005-07-06
Fans: 9

you have a reliance on your vendor (situation with all current Linux distributions).


GNU/Linux as no reliance on vendor for anything.

The linux kernel as many version and modification of itself. So do the library , so do the x systems , so do the windows environment , etc ...

SLS ... Debian ... Ubuntu ...

SLS ... Slackware ... SLAX

Red Hat ... Mandriva ... PcLinuxOS

Xfree , X.org

KDE , Gnome , Xfce

ETC ...

You got acces to source code , it's Open Source developed , and it's Free software.

You can fix it yourself , train someone to fix it or hire someone else to fix it for you.

RE: Hand waving
by Thom_Holwerda (Staff) on Tue 6th May 2008 10:07 UTC in reply to "Hand waving"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

Nice try, Thom - if you're just reading it casually you almost miss the hand-waving about binaries that don't belong in any particular 'program bundle',


Miss? It's right there in the article:

"I also took a cue from Mac OS X by creating the specific /System/Utilities directory, where the operating system can store utilities such as the Activity Monitor, graphical Bluetooth tools, Network Utilty (graphical ping, whois, etc.), those sorts of things. What does and doesn't go into that directory is fairly arbitrary, and is open for debate. Other binaries that usually reside in /bin on UNIX systems can also go into /System (say, something like /System/Binaries, since this is the 21st century - why use unclear acronyms)."

RE[2]: Hand waving
by AdamW (3.4) on Wed 7th May 2008 21:31 UTC in reply to "RE: Hand waving"
AdamW Member since:
2005-07-06
Fans: 13

Yes, it is. That's the bit I'd characterize as hand-waving. ;)

RE: Hand waving
by shevegen (1) on Tue 6th May 2008 13:11 UTC in reply to "Hand waving"
shevegen Member since:
2008-04-04
Fans: 0

'If you use shared libraries, you have a reliance on your vendor (situation with all current Linux distributions).'

That is true, and I am one that constantly critisizes the upstream vendors/maintainers as well, but you see - the situation on Mac is as bad as on Windows in that you are dependent on a company just as well.

So all these worlds more or less have similar problems. You depend on someone else.


Now, with similar problems already, I as a user would still like to choose AppDirs instead of FHS.

I dont want that others enforce the FHS upon me. But the big distributions have no inclination to change to AppDirs at all.

A couple of thoughts on system
by Angel Blue01 (1.88) on Mon 5th May 2008 23:57 UTC
Angel Blue01
Member since:
2006-11-01
Fans: 0

We should also have a /Users/Common directory for documents (and a /Settings/Common for settings) that all users on the system need access to. Of course the system needs to support user-controlled file permissions so User 1 can grant write privaleges to User 2 to a directory he owns but not allow User 3 to read it without being a System user and needing create a group.

What about file associations? I know this could be handled by the window manager but I'd like some central database of what applications are associated with what files, even on a user by user basis. On Computer 1 Firefox should be the default browser for all users but Computer 2 User 1 wants to use Firefox while User 2 likes Konqueror.

This new program management is the best idea I have ever heard for managing programs!

Why?
by Adam S (Staff) on Tue 6th May 2008 00:08 UTC
Adam S
Member since:
2005-04-01
Fans: 16

Why store user info in /Users/User1/ and settings in /Settings/User1?

Why wouldn't you use /Users/User1/settings for settings? You want the home directory to be less portable? Less backup-able?

RE: Why?
by xiaokj (2.12) on Tue 6th May 2008 15:18 UTC in reply to "Why?"
xiaokj Member since:
2005-06-30
Fans: 0

Real separability. For example, many people who test distros will want to share /home, but later find themselves with overlapping Settings that do not work with the other distros.

These days I maintain my files in /home/xiaokj/Link and make the link to some central repository (another partition). It would be nice if I need not do that, but rather link specific apps' settings (like IM/Email that is really supposed to be persistant) instead of making sure the dozen other settings that should be separate (like Xauthority, KDE/Gnome settings...)

RE[2]: Why?
by siride (4.32) on Tue 6th May 2008 16:14 UTC in reply to "RE: Why?"
siride Member since:
2006-01-02
Fans: 0

So it's basically doing the same thing that so many people complain about with the rest of the file system. Scattering files all over the place.

Another comment
by Adam S (Staff) on Tue 6th May 2008 01:10 UTC
Adam S
Member since:
2005-04-01
Fans: 16

If each program has an "internal" version number, then perhaps the corresponding /Settings/User/X directory be the version number instead of the program name? So if Garden Designer is v846, then the file is /Settings/User1/846. This way, you'd really be able to run parallel versions of apps.

But there's another problem - there might be another program that is internally 846. We need a unique number. Wait, that already exists!; enter the GUID.

My point is, there are some really cool ideas in here, but ultimately, I think it needs a lot of refinement. Storing the settings in a separate space just means you've improperly used the home directory in the first place (see my above comment). Your permissions *will* be screwy when you put settings in one top level directory and user data in another. This is why there are hidden directories. Also, your arbitrary requirement of the settings directory sharing the name of the software package will need some sort of low-level monitor. It also means that when I release a new version of a package and choose to rename it with a version number, I can't reliably find your user settings from any of the last several versions of my software, I have to try every possible combo or not let you migrate your settings from any version but the last one.

Frankly, I think the current OS X way is near perfect, with plenty of room for small improvements. I don't think that, with disk space as it is, the system is "cluttered" by having lots of settings file - stored properly where settings should be stored! The idea is that it's persistent, it's there the next time you install the app. And I think Leopard's Spotlight is plenty fast enough for 99% of users. Live queries are very cool, but very few people would use them in a mainstream OS, and existing technologies provide most of the end result.

RE: Another comment
by Thom_Holwerda (Staff) on Tue 6th May 2008 10:12 UTC in reply to "Another comment"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

If each program has an "internal" version number, then perhaps the corresponding /Settings/User/X directory be the version number instead of the program name? So if Garden Designer is v846, then the file is /Settings/User1/846. This way, you'd really be able to run parallel versions of apps.

But there's another problem - there might be another program that is internally 846. We need a unique number. Wait, that already exists!; enter the GUID.


And how user friendly is that? The hierarchy I devised is supposed to be 'human readable' - actually, that was one of its primary goals. File systems have been a mess since day one, and it simply needs to be fixed. OS X made tremendous strides in that regard, but in the end it's just a virtual directory structure draped over a traditional UNIX/POSIX structure.

This is why there are hidden directories.


Hidden directories are evil. If a system needs to be secretive in order to not confuse a user, there's a design error somewhere.

Also, your arbitrary requirement of the settings directory sharing the name of the software package will need some sort of low-level monitor.


I addressed that issue with a typical utopian statement in the article:

"To prevent the mess Mac OS X has with separating settings files from the program bundles, the system should somehow 'know' the two belong together - this shouldn't be too hard to realise. One option would be to use BFS-like attributes; the Garden Designer settings file could have an attribute attached to it that links it to the Garden Designer application bundle, for instance. This way, when you want to remove Garden Designer from your system, the system can ask you if you want to delete its settings files too."

RE: Another comment
by xiaokj (2.12) on Tue 6th May 2008 15:21 UTC in reply to "Another comment"
xiaokj Member since:
2005-06-30
Fans: 0

internal versions can be easily confined to specific programs.

A more practical concern would be the fact that programs can change names. However, it can also be overcome with a specific file, in the program bundles, that state the previous names.

devil is in the details
by Yamin (2.2) on Tue 6th May 2008 04:09 UTC
Yamin
Member since:
2006-01-10
Fans: 0

I think most of us have thought about such ideas in the past. The devil really is in the details as someone said above.

I tend to like the idea of 'application bundles' but then how do you handle shared libraries. You will end up doing the weird windows DLL handling.
For example you could have a '.lib' file in each program directory that tells the loader which shared libraries to use for the application. The application bundle would include a version of the library that is 'known' to work.

shared libraries not belonging to a particular application can also be installed a generation /system/libs directory.

If a newer version of a '.lib' is available, then somehow the system must decide if it wants to try that version instead of the version in the application bundle. This 'somehow' is undefined. Perhaps the system detects a new version, asks you if you want to try the upgraded version... and goes back if it fails. Maybe we leave it to some online repo... This somehow could get complicated fast.


--------
in terms of updating the system. I don't really know why you're complicating it with all this search and queries... Wouldn't a simple file with the application bundle, pointing to some server location do. The system can check if there is an updated version and if so, prompt for you to download/install it.

non privilegied package management
by benob (4) on Tue 6th May 2008 04:15 UTC
benob
Member since:
2008-05-03
Fans: 0

One of the most frustrating thing when you live on a linux where you don't have root access is to install programs. you basically need to go the "./configure --prefix=$HOME && make && make install" and do it yourself dependencies.

Not all programs require root privileges. Then, why not allow users to do "apt-get install whatever" and it goes to their directory until the program is superseded by a system wide installation?

Going along this idea would be a first step towards better program management.

RE: non privilegied package management
by WereCatf (4.12) on Tue 6th May 2008 08:57 UTC in reply to "non privilegied package management"
WereCatf Member since:
2006-02-15
Fans: 7


Not all programs require root privileges. Then, why not allow users to do "apt-get install whatever" and it goes to their directory until the program is superseded by a system wide installation?


I have wondered about the same thing myself. But I guess it all boils down to the fact that people expect only two kinds of users to install software: system admins or users who own the computer. The truth is however that there are also people who don't have the root password but might still wish to install something additional. Such users could f.ex. be your children.

So yeah, I basically like your idea. All the files and folders should however go under a single folder in the users' home, like f.ex. /home/user/Applications and of course everything should be owned by the user and writable only by that user. Oh, and yes, the system admin should still be allowed to choose which users are allowed to install software this way. In corporate environments for example it's often preferred that users are not allowed to install anything but instead ask the admin for that.

steviant Member since:
2006-01-11
Fans: 0

Most of the stuff kids are going to want to install will run in Wine, which handles installing crap applications inside a users home directory just fine.

benob Member since:
2008-05-03
Fans: 0

I wish I was a kid ;-)

The "ask the admin" approach usually takes some time and gives the admins a bad reputation of being not very responsive.

If not in an environment where installing an application may compromise security and should be prohibited, there is a clear benefit in letting the user do basic administration tasks (installing stuff). Debian-style package management makes this possible because installing something is designed to be a zero hassle operation. However, the neat thing about being superuser to install stuff is that it keeps the applications clean and working. A similar approach should be used by not giving the user actual write rights in his app folder, but using a setuid mechanism so that only the package manager can do that.

bogomipz Member since:
2005-07-11
Fans: 0

If programs are organized as AppDirs, and they are not allowed to rely on being installed in a specific location in the file system hierarchy, this may be achieved simply by unzipping the app wherever you prefer. No need for installers at all.

The trick with Thom's attributes idea, is that you can still query installed applications even if no installer was used to put them there.

Oh, and yes, the system admin should still be allowed to choose which users are allowed to install software this way. In corporate environments for example it's often preferred that users are not allowed to install anything but instead ask the admin for that.

Unix security has a very simple way to do this. Just mount the home partition as noexec. There simply is no way you can stop the user from putting a binary in his home directory, but noexec makes sure that no user installed files can be executed.

some ideas for refining
by s-peter (2.94) on Tue 6th May 2008 04:22 UTC
s-peter
Member since:
2006-01-29
Fans: 0

I enjoyed reading the article very much and it seems like a good base for building a new packaging scheme. However, there are still some areas that need further work. Some assumptions of the proposed system were also not clear.

The first one is the operating system, is this meant for Windows, OS X (OS XI?), Linux, some other OS, or an entirely new system? For "legacy" systems, the biggest issue of all seems to be providing a migration path from existing software deployment methods to the new method.

The handling of shared libraries, and the necessity of separating user settings from user homes have been mentioned by others. Also, the write-up talks about a single host, but in practice, program and user directories are often shared among several hosts. It is not obvious that the system would work well in such scenarios. More detailed consideration may be needed about what is shared among which hosts and users. Depending on the OS environment, support for multiple architectures may need to be considered as well.

One of the biggest issues is the storing of settings. Supporting multiple versions of a program in parallel, sharing the same set of settings, is a pain in the ass for software vendors. I think that a lot of conflicts would arise from trying to run different versions of Word, Photoshop, or even GNOME2 with the same set of settings.
So if different versions have to share the same set of settings, many software will likely refuse to install without having prior versions removed first. In such case, if you have other software packages that depend on this kind of a package, you're again stuck with dependency hell.

Furthermore, as mentioned in the article, sometimes the user or administrator does not trust a new version of a program. So even when the software supports shared settings, the user may not want to allow it to modify the settings used for the "trusted" version.

One solution may be to store settings for different versions separately, but have the installer generate the new settings automatically based on those for previous version.

Finally, the proposed system also does not seem to support installing programs without system privileges, which is normally possible for most Linux / OSX software and an increasing share of Windows software.

Good luck for working on this new system, and looking forward to hearing about the progress.

RE: some ideas for refining
by Thom_Holwerda (Staff) on Tue 6th May 2008 10:24 UTC in reply to "some ideas for refining"
Thom_Holwerda Member since:
2005-06-29
Fans: 20

is this meant for Windows, OS X (OS XI?), Linux, some other OS, or an entirely new system?


It's not meant for any specific system, but you can see my involvement in Haiku and my love for BeOS shining through.

Supporting multiple versions of a program in parallel, sharing the same set of settings


Except, they don't. The whole idea is that the the directory /Settings/User 1/Garden Designer could contain multiple settings files for multiple versions - just as I explained in the article. They would be differentiated by their internal version numbers. The file manager could show them as follows:

/Settings/User 1/Garden Designer/settings.xml:438
/Settings/User 1/Garden Designer/settings.xml:439

The same goes for the programs:

/Programs/Garden Designer.bundle:438
/Programs/Garden Designer.bundle:439

The idea is that the system is clever enough to only display the internal version number when there are actually multiple versions installed. Since installing multiple versions is most likely an expert endeavour only, normal users will never encounter such internal version numbers attached to their program bundle files.

Finally, the proposed system also does not seem to support installing programs without system privileges, which is normally possible for most Linux / OSX software and an increasing share of Windows software.


Installing Linux packages without system privileges? Some exotic Zero Install systems may be, but other, more conventional package systems all require system access (as far as I know).

Anyway, executable code should never be able to be installed without a system password, if you ask me. I'm quite strict in that, I know. Executable code is the basis for A LOT of attacks, so it simply shouldn't be something just any user can dump on the system.

Edited 2008-05-06 10:31 UTC

RE[2]: some ideas for refining
by s-peter (2.94) on Tue 6th May 2008 14:24 UTC in reply to "RE: some ideas for refining"
s-peter Member since:
2006-01-29
Fans: 0

Thanks for the clarifications. And sorry, I obviously somehow missed the paragraph about multiple setting files.

I still have some things to add...

Multiple versions

I don't agree with having multiple versions being an unusual case that "normal users will never encounter". In fact, I think that the ability to have multiple versions of the same software side-by-side might be one of the most sought-after features in program management.

Not being able to have multiple versions side-by-side is what keeps a huge number of users at businesses and many at home stick with older, often outdated software. Many people won't upgrade unless they are absolutely certain that they can do the same things with the new version as they used to do with the previous. And with most existing systems not allowing to use multiple versions side-by-side, there is usually no way to make sure.

So I'm confident that users will install multiple versions when the program management system allows it. This is even more needed for systems with multiple users. In such case, the migration of all users may take longer, and so the time frame when multiple versions are installed side-by-side becomes longer. Note that company and school systems with large numbers of "normal" users fall into this category, where multiple versions would be available for extended periods of time.

Actually, in the utopistic program management system where multiple versions can exist side-by-side without conflicts, there should be no need for the user to explicitly uninstall previous versions. Old versions out of use could be removed automatically in a time-machine-like fashion. (In practice you should consider removing them sooner for security reasons.)

Installing with user privileges

Several other comments have mentioned this as well, so this also seems to be a sought-after feature. (This may also be related to the reasons above, e.g. some user wanting to use Firefox 3 on the company/school etc. system where Firefox 2 or maybe 1.5 is installed system-wide.)

I have to mention that when I said "installing" I was referring to software deployment in general, not one specific deployment framework. For example, I can download an archive ("bundle") of Eclipse for Windows, Linux or Mac OS X. For each OS, I can extract it in my home folder ("install") and run it from there. This does not require administrator privileges ("system password"). (For Linux, installing other applications in home folders may require tweaking with paths, but for most programs it is possible.)

Note that from that user's point of view, after it has been installed, such an application can be used in the same way as a system-wide one, the only difference is that it is not available for other users.

With a clean framework as the one described in the article, it should not be difficult to add support for enabling this kind of installation for all bundles. (As suggested by others, they could be put under "/User/User 1/Programs" instead of "/Programs", for example.) Doing so would reduce the amount of user actions required for such installation, allow automatized upgrading of all software a user has installed, etc. It does not make the system more vulnerable, compared to when the user has to do all these steps manually. Finally, it would also reduce sysadmin load as users who weren't able to install by themselves would not need to ask the admin anymore.

Interesting idea
by smitty (3.68) on Tue 6th May 2008 05:06 UTC
smitty
Member since:
2005-10-13
Fans: 0

but in the end it seems like it would basically be OSX + a centralized system, which isn't exactly revolutionary. The whole thing with BFS live queries could be handled exactly the same with the centralized system using a database, you're just moving the relation management from the db into the native filesystem.

Call me stoopid...
by Loki_999 (3) on Tue 6th May 2008 07:04 UTC
Loki_999
Member since:
2008-05-06
Fans: 0

...but my personal wish is for applications always to be fully self contained with any third party stuff they need contained within the program directory. Sure this would lead to bloat on disk size, but whats taking up more disk space on your hard drive? Those 10Gb of applications or the 100's Gb of MP3s/AVIs?

Im a big game player and i like games which have save games IN the game directory (eg: under \save or \save\profile - for multiple profiles). Saving under My Documents a la Microsofts recommedations gets me really annoyed.

And dont even get me started on saving game/configuration information in the registry. The registry is a bad idea from the start. Whats wrong with .CFG text files?

While i accept the need to consider multi-user systems and privledges im sure self-contained apps could somehow work with this.

Anyway, nice article, even if some ideas need refinement.

RE: Call me stoopid...
by renox (2.68) on Tue 6th May 2008 08:02 UTC in reply to "Call me stoopid..."
renox Member since:
2005-07-06
Fans: 1

The thing is if the application is really 'fully self-contained' that this increase not only the disk usage (which we don't care I agree) but also the memory usage (which we do care about!) because a 'shared' library wouldn't be shared anymore as each application would load the version stored in his directory, the OS wouldn't know that these version are identical..

Currently the way I see to fix this is to have a 'delta' phase in the installation where all the 'shared' library contained in the application would be checked against the already installed one, if a shared library already exist in the same filesystem then it wouldn't be installed but it would be hardlinked to the existing one.
Benefit: no disk or memory bloat and the application are still self-contained.
Inconvenient: an additionnal 'delta' phase

The big downside of the 'self-containement' part is that if a shared library must be upgraded then all the application which use it must be upgraded..

RE[2]: Call me stoopid...
by Loki_999 (3) on Tue 6th May 2008 10:29 UTC in reply to "RE: Call me stoopid..."
Loki_999 Member since:
2008-05-06
Fans: 0

Had this too often with apps with shared components, eg some lib windows\system32. New application breaks old one, or old application breaks new one.

Perhaps this is sometimes caused by bad programming and/or packaging, but it does happen from time to time that two apps require exactly the same named lib that should reside in the exact same location or else it wont work, and those two versions of the lib are not compatible.

Hence my liking of self contained. And besides, sharing only bloats memory of those apps are memory resident/drivers/or simultaneously active. Not going to always be the case.

Good
by Dreams (3.25) on Tue 6th May 2008 08:04 UTC
Dreams
Member since:
2007-12-12
Fans: 0

I wish Ubuntu would use a system like you described in this article. It's much more 'human'. I really have no idea where Ubuntu stores all it's program data, and usually config files and log files etc are all stored in different places, for each different program.

It's too confusing, and when i want to do something myself, instead of using Synaptic, i usually end up confused..

RE: Good
by MamiyaOtaru (3.24) on Tue 6th May 2008 09:50 UTC in reply to "Good"
MamiyaOtaru Member since:
2005-11-11
Fans: 1

I really have no idea where Ubuntu stores all it's program data,

1: Why do you need to know that?
2: Need aside, all that info is stored in the .deb. Kpackage (and Synaptic I think) have a