LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Check dependency and install application from internet in red-hat,ubuntu,cent-os . (https://www.linuxquestions.org/questions/linux-newbie-8/check-dependency-and-install-application-from-internet-in-red-hat-ubuntu-cent-os-4175541209/)

prasad1990 04-30-2015 05:26 AM

Check dependency and install application from internet in red-hat,ubuntu,cent-os .
 
Hello friends,

I want to write script, In which i have to check dependency of application and download it from internet at the time of installation or by another way to check the dependency online.
for eg. mysql,mariadb,nano,netbeans etc.
Please suggest me how can I do that.

brianL 04-30-2015 05:32 AM

For those distros you mention, the package manager automatically installs dependencies.

prasad1990 04-30-2015 05:40 AM

yeah,you are ri8 my friend.
But I m doing minimal installation of red-hat. so sometimes I faced "xyz" library is not found , And I want to setup development environment. so its required different dependencies for different application or libraries.

brianL 04-30-2015 05:46 AM

You can usually find out on the application's website what dependencies are needed.

prasad1990 04-30-2015 06:06 AM

I got error while installing remmina, some dependencies were not found. and i want to install that application with auto dependencies.

John VV 04-30-2015 09:44 PM

for redhat it is very easy to check for dependencies
RHEL 7.1 is the current

a long time ago in a ... far away....

in RHEL5 there was introduced YUM!!!

CentOS is a rebuild of RHEL


so to check
Code:

su -
yum update
---- or ------
yum install ProgramName
---- or ----
yum groupinstall "Development Tools"


prasad1990 05-01-2015 08:20 AM

Thanks for reply guys...


All times are GMT -5. The time now is 06:22 PM.