Solved

Newbie question. How do I install new packages in Linux

Posted on 2004-10-14
11
273 Views
Last Modified: 2013-11-13
I installed Linux. Now i want to add MySQL. How do I do that???
0
Comment
Question by:DBDevOne
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 6

Expert Comment

by:blkline
ID: 12310690
For which distribution?
0
 
LVL 4

Expert Comment

by:net_sec_guru
ID: 12310699
Here is a good link:
http://dev.mysql.com/doc/mysql/en/Linux-RPM.html
http://www.webdevelopersnotes.com/tutorials/sql/installing_mysql_on_linux.php3
http://perl.about.com/library/weekly/aa110800a.htm (I don't care for this one... but it may help)

What you are going to run into is dependency problems. Just be ready to install more RPM packages than just MySql! But it will come back and tell you what you are missing, you just d/l it, install it, and try again.

Good luck!
0
 
LVL 2

Expert Comment

by:Sunjith
ID: 12310821
Download the mysql appropriate for your system from: http://dev.mysql.com/downloads/mysql/4.0.html
If you installed an rpm based distribution of linux like Fedora or Mandrake, download the .rpm file and install using the command:
-----------
rpm -ivh mysql-xxx.rpm
-----------
For any system, (if you have a compiler), download the source tarball (.tar.gz file) and install as follows:
-----------
tar zxvf mysql-xxx.tar.gz
cd mysql-xxx
./configure
make
make install (run this command as root)
-----------
Replace mysql-xxx with the name of the file you downloaded.
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

Author Comment

by:DBDevOne
ID: 12311610
How do I download a package from a command line interface?
0
 
LVL 96

Expert Comment

by:Lee W, MVP
ID: 12311847
I haven't seen an answer to the distro, but I've been using Debian lately and love it - especially with package management - for debian, installing MySQL can be as entering:

apt-get install mysql

at a command line.
0
 

Author Comment

by:DBDevOne
ID: 12312456
I'm using RedHat 7.3 apt doesn't do it for me but thanks for the suggestion!
0
 
LVL 17

Accepted Solution

by:
owensleftfoot earned 250 total points
ID: 12313079
You can use yum, the yellow dog package manager. You can get an rpm for redhat 7.3 here.
http://linux.duke.edu/projects/yum/download/1.0/yum-1.0.3-1_73.noarch.rpm

After you have installed  yum, installing mysql is as easy as "yum install mysql". Yum will downlaod mysql + any rpms mysql needs and install them for you.
0
 
LVL 2

Expert Comment

by:Sunjith
ID: 12315187
Yo can use wget to download rpm from command line. For example, you can download mysql 4.0.21(glibc shared x86) rpm from an ftp mirror in US as follows (from command line):
------------
wget ftp://mirror.services.wisc.edu/mirrors/mysql/Downloads/MySQL-4.0/mysql-standard-4.0.21-pc-linux-i686-icc-glibc23.tar.gz
------------
0
 
LVL 4

Expert Comment

by:pankajtiwary
ID: 12315631
Hi Sunjith,
You can use any text based browser for e.g. lynx , go to the site and download the package. The package you will be download will be either a tar.gz file or an rpm file. In case you downloaded an rpm, you need to use the package manager for that, otherwise you can untar the distribution and install it from the source itself.

Cheers!
0
 
LVL 4

Expert Comment

by:pankajtiwary
ID: 12315643
Sorry the post was for the o/p named  DBDevOne , sorry for the typo. :-)
0
 

Author Comment

by:DBDevOne
ID: 12319986
Really tough to pick the best answer!!! Owens worked best for me.

Thank you very much for your helps guys!!!
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question