You are not logged in.

#1 2004-03-13 21:22:19

whol
Member
Registered: 2004-02-04
Posts: 155

I just deleted "vmstat".

I was trying to completely remove another failed VMWare 4 installation, when I saw some lingering vm* files in /usr/bin.  So I did "rm vm*".  Now I see that "vmstat" is an actual linux file, and not VMWare debris.  Is there an easy way to get a binary file back?  Or maybe I can use pacman to get another copy of it?

Here is what I did:

[root@arch23 bin]# ls vm*
vmstat                  vmware-config.pl.old.1  vmware-config.pl~
vmware-config.pl.old.0  vmware-config.pl.rej
[root@arch23 bin]# rm vm*


oops!

Offline

#2 2004-03-13 21:26:30

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: I just deleted "vmstat".

pacman -Qo /usr/bin/vmstat

That should also work on your machine with vmstat deleted.
And now just reinstall procps :

pacman -S procps

Offline

#3 2004-03-13 21:28:06

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: I just deleted "vmstat".

I forgot a general tip : if you install software outside pacman (like vmware), I would suggest putting it into /usr/local or in its own /opt/SOMETHING

Offline

#4 2004-03-13 21:32:15

whol
Member
Registered: 2004-02-04
Posts: 155

Re: I just deleted "vmstat".

Hi Andy,

I get an error when I run pacman:

[root@arch23 root]# pacman -Qo /usr/bin/vmstat
error: /usr/bin/vmstat is not a file.

Do I ignore that error and run the 2nd command, or I am doing something wrong?

vmstat is the file I deleted.

thx

Offline

#5 2004-03-13 21:51:15

whol
Member
Registered: 2004-02-04
Posts: 155

Re: I just deleted "vmstat".

ree helped me fix this, he had me enter (via IRC):

pacman -R procps
pacman -S procps

Offline

#6 2004-03-13 21:54:05

andy
Member
From: Germany
Registered: 2002-10-11
Posts: 374

Re: I just deleted "vmstat".

Just an explanation, the first one should tell you to which package vmstat belongs/belonged. I thought pacman does not consult the actual file for that. It seems I was wrong. You could have just issued the pacman -S command. Just read up on the options in pacman's man page ;-)

Offline

#7 2004-03-13 22:00:02

whol
Member
Registered: 2004-02-04
Posts: 155

Re: I just deleted "vmstat".

Yep, I need to read more.

I found the package by entering this command ree gave me:

"pacman -Ql |grep vmstat"

Thats a little "L" after the "Q".

thx!

Offline

Board footer

Powered by FluxBB