LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 11-21-2012, 11:36 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Rep: Reputation: 52
Re yum remove software


Hi all,

Fedora 17, 64bits

I ran following commands;
$ sudo yum install httpd
$ sudo yum install mysql
$ sudo yum install mysql-server

installing above packages.

I haven't configured them.

Then I ran again;
$ sudo yum remove httpd
$ sudo yum remove mysql

on running;
$ sudo yum remove mysql-server
Code:
Loaded plugins: langpacks, presto, refresh-packagekit
No Match for argument: mysql-server
No Packages marked for removal
No package found.

Whether mysql-server has been removed with "remove mysql" simultaneiously.

However on running;
$ sudo find / -name mysql
Code:
find: `/run/user/satimis/gvfs': Permission denied
/usr/share/mysql
/usr/share/bash-completion/completions/mysql
/usr/lib64/perl5/vendor_perl/DBD/mysql
/usr/lib64/perl5/vendor_perl/auto/DBD/mysql
/usr/lib64/mysql
Whether I have to remove them manually including their contents? I.e. directory + filles

$ ls /usr/share/mysql/
Code:
charsets  english   greek      korean        portuguese  slovak
czech     estonian  hungarian  norwegian     romanian    spanish
danish    french    italian    norwegian-ny  russian     swedish
dutch     german    japanese   polish        serbian     ukrainian
$ ls /usr/lib64/mysql/
Code:
libmysqlclient.so.18  libmysqlclient.so.18.0.0
$ ls -al /usr/share/bash-completion/completions/mysql
Code:
-rw-r--r--. 1 root root 2417 Jun 20 01:17 /usr/share/bash-completion/completions/mysql
$ ls /usr/lib64/perl5/vendor_perl/DBD/mysql/
Code:
GetInfo.pm  INSTALL.pod
$ ls /usr/lib64/perl5/vendor_perl/auto/DBD/mysql/
Code:
mysql.so
TIA

B.R.
satimis
 
Old 11-21-2012, 12:24 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,984
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
Quote:
Originally Posted by satimis View Post
$ sudo yum install httpd
$ sudo yum install mysql
$ sudo yum install mysql-server
Next time just string 'em together: 'sudo yum install httpd mysql mysql-server'


Quote:
Originally Posted by satimis View Post
Whether mysql-server has been removed with "remove mysql" simultaneiously.
Check /var/log/yum.log?


Quote:
Originally Posted by satimis View Post
[code]
$ sudo find / -name mysql
/usr/share/mysql
/usr/share/bash-completion/completions/mysql
/usr/lib64/perl5/vendor_perl/DBD/mysql
(..)

$ ls /usr/share/mysql/
Code:
charsets  english   greek      korean        portuguese  slovak
czech     estonian  hungarian  norwegian     romanian    spanish
danish    french    italian    norwegian-ny  russian     swedish
dutch     german    japanese   polish        serbian     ukrainian
For every item you can query the database, for example:
Code:
find /usr /lib /var -name \*mysql\* -print0|xargs -0 -iX rpm -qf 'X' --qf="%{name}\n"|sort -u
or
Code:
rpm -qf --qf="%{name} %{installtime}\n" /usr/share/mysql
# Note time is epoch so use something like this
epoch2date() { EPOCH="$1"; /bin/date --date "$[$(/bin/date '+%s')-${EPOCH}] seconds ago" '+%Y-%m-%d %H:%M:%S %Z'; }
# to get it back to local time.
 
Old 11-22-2012, 12:41 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by unSpawn View Post
Next time just string 'em together: 'sudo yum install httpd mysql mysql-server'
Hi,

Thanks for your advice.

Quote:
Check /var/log/yum.log?
$ sudo cat /var/log/yum.log | grep mysql-server
Code:
Nov 22 00:58:10 Installed: mysql-server-5.5.28-1.fc17.x86_64
Nov 22 01:07:21 Erased: mysql-server-5.5.28-1.fc17.x86_64
Quote:
For every item you can query the database, for example:
Code:
find /usr /lib /var -name \*mysql\* -print0|xargs -0 -iX rpm -qf 'X' --qf="%{name}\n"|sort -u
or[/code]
$ sudo find /usr /lib /var -name \*mysql\* -print0|xargs -0 -iX rpm -qf 'X' --qf="%{name}\n"|sort -u
Code:
bash-completion
comps-extras
file /var/lib/yum/yumdb/m/01d099d2403f90d5f03fc20dff957e8e59f059bf-mysql-libs-5.5.28-1.fc17-x86_64 is not owned by any package
mysql-libs
perl-DBD-MySQL
python-boto
rsyslog
selinux-policy-devel
sos
Can I remove "mysql-libs-5.5.28-1.fc17-x86_64" ? It is not dependencies of any package

Quote:
Code:
rpm -qf --qf="%{name} %{installtime}\n" /usr/share/mysql
# Note time is epoch so use something like this
$ rpm -qf --qf="%{name} %{installtime}\n" /usr/share/mysql
Code:
mysql-libs 1353516924
Quote:
Code:
epoch2date() { EPOCH="$1"; /bin/date --date "$[$(/bin/date '+%s')-${EPOCH}] seconds ago" '+%Y-%m-%d %H:%M:%S %Z'; }
# to get it back to local time.
$ epoch2date() { EPOCH="$1"; /bin/date --date "$[$(/bin/date '+%s')-${EPOCH}] seconds ago" '+%Y-%m-%d %H:%M:%S %Z'; }
No output
 
Old 11-22-2012, 05:04 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,984
Blog Entries: 54

Rep: Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742Reputation: 2742
Quote:
Originally Posted by satimis View Post
Code:
$ sudo cat /var/log/yum.log  | grep mysql-server
Nov 22 00:58:10 Installed: mysql-server-5.5.28-1.fc17.x86_64
Nov 22 01:07:21 Erased: mysql-server-5.5.28-1.fc17.x86_64
...is your answer (BTW just 'sudo grep mysql-server /var/log/yum.log').


Quote:
Originally Posted by satimis View Post
Can I remove "mysql-libs-5.5.28-1.fc17-x86_64" ? It is not dependencies of any package
Run 'sudo yum remove mysql-libs' and find out?


Quote:
Originally Posted by satimis View Post
Code:
$ epoch2date() { EPOCH="$1"; /bin/date --date "$[$(/bin/date '+%s')-${EPOCH}] seconds ago" '+%Y-%m-%d %H:%M:%S %Z'; }
No output
You're supposed to run the latter one with the second value, the epoch, from the first command. Anyway, it seems you installed it quite recently.
 
Old 12-18-2012, 09:08 PM   #5
future_computer
Member
 
Registered: Apr 2012
Distribution: Pinguy OS
Posts: 386

Rep: Reputation: Disabled

How to do update at terminal?
There is no update manager in Fedora, like in Ubuntu.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
broken yum and add/remove software cheltz Linux - Software 2 02-26-2012 09:16 PM
yum remove without dependencies aclhkaclhk Linux - Software 1 01-26-2010 05:08 AM
Error in accessing add/remove software and YUM rohit83.ken Linux - Software 1 03-20-2008 07:40 AM
# yum remove dbus - trying to remove the whole system... atnonis Fedora 4 11-23-2007 06:31 AM
yum remove daacosta Fedora 8 10-27-2005 10:37 AM


All times are GMT -5. The time now is 04:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration