I am creating a Script and I need to know what package manager each Popular Unix Distribution Uses (especially those distros that are commonly-used for Servers)...
I mean:
Debian uses apt-get
Fedora uses yum
|
I am creating a Script and I need to know what package manager each Popular Unix Distribution Uses (especially those distros that are commonly-used for Servers)... I mean: |
|||||||||
|
|
I'll comment about the specific *BSD tools: Warning: the *BSD systems use the same name convention for the tools (pkg_add, pkg_info, etc) but all are completely different. |
|||
|
|
|
You would probably be better off creating a .deb package for Debian based distros (including Ubuntu), and .rpm package for Red-Hat based distros (including Fedora), and making the .tar file available for everybody else. Don't concern yourself with which package manager each distro uses. For instance, although I run a Debian-derived distro, I personally use the |
|||||
|
|
Its different for different unix-systems. But the common thing in all those is the tar.gz file . It is the source code of your program. Then you can make either .deb files for Debian systems or .rpm file for Red Hat Systems. The .deb and .rpm are both binary files while tar.gz is mostly ASCII file but it can also contain binaries. You can convert .rpm file to .deb file in debian systems by this command: To install :
To convert to .deb from .rpm :
Replace the "packagename.rpm" with your original name of the file. Then a .deb file will be created and to install that use :
Replace the "filename.deb" with your original name of the file. If you want that users can install your application by apt-get or yum then you will have to upload your app to the repository of your distribution. Only then the user will be able to use apt-get or yum to install the application directly. |
|||||||||||
|