LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why are no application folders being created in home folder? (https://www.linuxquestions.org/questions/linux-newbie-8/why-are-no-application-folders-being-created-in-home-folder-814174/)

usernameinuse 06-14-2010 11:28 PM

Why are no application folders being created in home folder?
 
For example, when I do something like...

Code:

sudo apt-get install vim
No .vim folder is created in the home folder.

usernameinuse 06-14-2010 11:56 PM

Someone replied on another site, but if anyone else has a similar question here was his/her answer.

Quote:

Because they need not to be created.

Files and folders like .vim which begin with a dot are, by convention, hidden from user if a special option is not specified: you need to launch ls -a or set the "View hidden files" option in your file manager (Ctrl+H also works). This convention is only meaningful when applied to user's home directory and its descendants, and is mainly used for storing user-specific configuration (KDE stores its settings in ~/.config, GNOME uses that too, apart with ~/.gconf and several others). They are often created automatically when application is run or its settings are changed, but they are not required to.

When you install an application through APT with tools like apt-get or aptitude, it spreads package-related files over the entire filesystem (check a typical file list for a package). It installs executables in /usr/bin, libraries in /usr/lib, documentation into /usr/doc together with /usr/man, and so on. All of these directories are not user-specific: they have nothing to do with your home directory. APT does not ever know about it. Dotfiles (and folders) are only used by application, not a package manager.

Imagine a big mainframe with a thousand of user. When a new package is installed, you wouldn't want to update all of users' home directories: this creates a mess in them, this may interfere with their existing configuration, and finally, that wastes disk space!

If you just want to customize your vim configuration, create the .vim directory by executing mkdir ~/.vim.

arashi256 06-15-2010 01:52 AM

do "ls -l" in your /home directory and you'll probably see a bunch of hidden files, one of which is no doubt .vim

alli_yas 06-15-2010 02:25 AM

Hi,

In principle, when you install a package (be it deb/rpm via apt/yum), the actual destination directory of the installation is dependent on the way in which the package was created. Thus for one application you may have the binaries installed in /usr/bin; the config in /etc/yourapp/yourapp.conf and so forth - but its totally dependent on the author of the package.


All times are GMT -5. The time now is 05:55 PM.