-
shiki
-
RE: help wrinting universal bash script to install
-
Since every distro is somewhat different, you could only use a bash script (that supposedly runs on any distro), which determines the current distro name, version, and so on. Such things like "it runs on everything" is almost non-existent on linux, so you better not hope too much.
Its possible to write an application what runs on everything IF that install got the necessary libs. Like you write your app in python, everyone can run it IF they got the [b]right[/b] version of python... Not easy.. :)
Install.. the universal method is the "./configure .... && make && make install" as you may know it, that *should* work everywhere. But you meant in packages , so yeah.. that is the first part of my post.
(There are many utilities for every distro to modify the default iso, and so on, so you can make your own flavor, thats not the problem.)
So in a nutshell:
(The script shall be written in bash, should detect the distro name, version, and be aware of those stuff, and then install the application in the correct way)
(Of course, all of this are my personal opinion, others should correct me, etc... anyway, good luck.)
-
10 Jul 09
Since every distro is somewhat different, you could only use a bash script (that supposedly runs on any distro), which determines the current distro name, version, and so on. Such things like "it runs on everything" is almost non-existent on linux, so you better not hope too much.
Its possible to write an application what runs on everything IF that install got the necessary libs. Like you write your app in python, everyone can run it IF they got the right version of python... Not easy.. :)
Install.. the universal method is the "./configure .... && make && make install" as you may know it, that *should* work everywhere. But you meant in packages , so yeah.. that is the first part of my post.
(There are many utilities for every distro to modify the default iso, and so on, so you can make your own flavor, thats not the problem.)
So in a nutshell:
(The script shall be written in bash, should detect the distro name, version, and be aware of those stuff, and then install the application in the correct way)
(Of course, all of this are my personal opinion, others should correct me, etc... anyway, good luck.)