LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (http://www.linuxquestions.org/questions/fedora-35/)
-   -   Re yum remove software (http://www.linuxquestions.org/questions/fedora-35/re-yum-remove-software-4175438145/)

satimis 11-21-2012 12:36 PM

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

unSpawn 11-21-2012 01:24 PM

Quote:

Originally Posted by satimis (Post 4834163)
$ 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 (Post 4834163)
Whether mysql-server has been removed with "remove mysql" simultaneiously.

Check /var/log/yum.log?


Quote:

Originally Posted by satimis (Post 4834163)
[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.


satimis 11-22-2012 01:41 AM

Quote:

Originally Posted by unSpawn (Post 4834200)
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

unSpawn 11-22-2012 06:04 AM

Quote:

Originally Posted by satimis (Post 4834528)
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 (Post 4834528)
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 (Post 4834528)
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.

future_computer 12-18-2012 10:08 PM


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


All times are GMT -5. The time now is 12:36 PM.