LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install RPM package (https://www.linuxquestions.org/questions/linux-newbie-8/install-rpm-package-739241/)

gwbaby 07-10-2009 01:40 PM

install RPM package
 
@QLinux ~]$ su
Password:
[root@QLinux q]# rpm -qa | grep mysql
mysql-libs-5.1.35-1.fc11.i586
mysql-5.1.35-1.fc11.i586
[root@QLinux q]# rpm -ivh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
[root@QLinux q]# rpm -Uvh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
[root@QLinux q]# service mysql status
mysql: unrecognized service
[root@QLinux q]#


----------------------------------------
I got a package mysql. I was trying to install this, but failed. Where am i wrong?

repo 07-10-2009 01:43 PM

Quote:

[root@QLinux q]# rpm -qa | grep mysql
mysql-libs-5.1.35-1.fc11.i586
mysql-5.1.35-1.fc11.i586
Seems to me mysql is allready installed.

Quote:

[root@QLinux q]# rpm -ivh mysql-5.1.35-1.fc11.i586
To install an rpm, you need the rpm.
Code:

rpm -ivh mysql-5.1.35-1.fc11.i586.rpm

kirukan 07-10-2009 01:57 PM

As I have seen you post, Mysql already installed at your system
Quote:

[root@QLinux q]# rpm -qa | grep mysql
mysql-libs-5.1.35-1.fc11.i586
mysql-5.1.35-1.fc11.i586
the above output means that there is a installed mysql(5.1.35-1.fc11 --> version of the mysql) by using this rpm -qa and grep option you can check whether there is a specific application installed or not

If you want to install or upgrade a rpm, the rpm file should be there at your current directory(name.rpm file), rpm -ivh option for fresh installation and rpm -Uvh upgrading the exiting version.

Quote:

[root@QLinux q]# rpm -ivh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
[root@QLinux q]# rpm -Uvh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
the above output is correct because you don't have rpm files on that current directory.

method should be
rpm -ivh name.rpm
rpm -Uvh name.rpm

repo 07-10-2009 02:25 PM

To get you started with rpm packaging:
http://www.cyberciti.biz/faq/how-do-...ll-suse-linux/

gwbaby 07-10-2009 03:08 PM

Perl(DBI)
 
gnome-search-tool.desktop MySQL-server-5.1.36-0.glibc23.i386.rpm
gnome-terminal.desktop
[root@QLinux Desktop]# rpm -Uvh MySQL-server-5.1.36-0.glibc23.i386.rpm
error: Failed dependencies:
perl(DBI) is needed by MySQL-server-5.1.36-0.glibc23.i386
[root@QLinux Desktop]# ^C
[root@QLinux Desktop]# yum install perl
Loaded plugins: refresh-packagekit
Setting up Install Process
Package 4:perl-5.10.0-69.fc11.i586 already installed and latest version
Nothing to do

---------------------------------------
Thanks for your all answers. I went to the folder and tried to install, now I got dependecies error. I went to software upgrade, there is not such a perl related update. I tried "yum", too, seems like i have already this, or not..

Where am i wrong?

gwbaby 07-10-2009 03:23 PM

already installed?
 
that's true when I do "rpm -qa | grep mysql", I can see package, does that mean I already installed package, or I need to rpm -Uvh command?

If package is already installed, why can't i find any service mysql from service? As you can see "service mysql status" unrecognized service.

1. Did i install already "mysql" package?
2. If yes, how can i run mysql? why can't i find mysql service from service list?
3. If I already install mysql correctly, do i need to still download "perl(DBI)" for dependency?

Thanks for your knowledge and answer.

kirukan 07-10-2009 03:53 PM

As i have referred to your previous post your system not existing with any older version of
Quote:

MySQL-server-5.1.36-0.glibc23.i386.rpm
so if you want to install this rpm just use rpm -ivh name.rpm,
if there is any dependencies for package installation you have install the dependencies too. rpm having option to ignore the dependencies (--nodeps) but i don't think this is a good practice to install packages.

Actually "service mysqld start" its referring whether is there startup script with name of mysqld at /etc/rc.d/init.d directory, therefore please makesure the startup script is existing on the above mentioned location.


All times are GMT -5. The time now is 08:17 AM.