D
D
DarkByte20152016-10-02 10:22:43
linux
DarkByte2015, 2016-10-02 10:22:43

How to install programs correctly?

As I understand it, most often the applications themselves are put somewhere. But what if the application was downloaded in an archive? Or did it take it and (when installing from the console) for some reason put it in my home folder? So after all, it seems that it should not be ... Transfer somewhere? As I understand it, basically they are placed in 4 folders: "/usr/share", "/usr/local", "/opt" and "/etc". Where is the best place to put it?

Answer the question

In order to leave comments, you need to log in

5 answer(s)
R
romy4, 2016-10-02
@romy4

You put it under your username, so you got it in your home folder.
If you install it yourself, then inside /usr/local/ or /usr/ Read
a little

A
Arsen Abakarov, 2016-10-02
@ArsenAbakarov

Есть оно в архиве и уже собрано, то кладите куда хотите (/opt, /usr/...), игры я вообще храню в домашней папке, если его нужно собирать, то лучше собрать deb пакет с помощью checkinstall, в инете полно инструкций.
После установки вы будете запускать приложение, в домашней папке запустившего юзера будет находится скрытая папка программы с окружением для пользователя

R
Román Mirilaczvili, 2016-10-02
@2ord

Нужно избегать скачивания программ в виде исходников. После распаковки надо ещё собирать код, предварительно устанавливая пакеты-зависимости.
Вместо этого гораздо проще найти родной пакет через поиск в штатном менеджере пакетов, который и выполнит всю работу за пользователя. Если в репозитории пакет отсутствует, то поискать в независимых сборках, таких как PPA.

M
Makarspb, 2016-10-02
@Makarspb

Ручками например rpm -Uvh --prefix /куда/хочешь/ставить/ пакет.rpm
Или примерно так.

C
CityCat4, 2016-10-03
@CityCat4

If the distribution is from the tag, then in bubunt, as in any other packaged distribution, it is categorically contraindicated to install programs manually - from this it ceases to be similar to Windows in terms of friendliness and becomes similar to normal Linux: D
But seriously, it does not take into account dependencies and when updating packages, the program will not be updated. If this is your own program - of course it's okay, but if it's someone else's - it's better to look for a package. Well, or for hardcore players - assemble it yourself, for example, based on the previous version.
If there is no package, then keep in mind that there is no typical layout that everyone is required to follow. There are some general conventions - in /bin the most necessary binaries, in /usr/bin - less necessary ones, in /opt - optional components, in /usr/local/bin - what was built manually ... but no one obliges you follow them :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question