Click to See Complete Forum and Search --> : rpm and ps -aux


datadan
08-08-2001, 11:13 AM
Does anyone know what rpm owns ps? I get:
[root@mail src]# rpm -qf /bin/ps
file /bin/ps is not owned by any package
[root@mail src]#
My ps causes core dumps and I want to reinstall.

If no RPM owns it, how can I re-install it?

Thanks

posterboy
08-08-2001, 04:51 PM
Here's what I learned about that, how I learned it.
[ray@raymondjones ray]$ rpm -q --whatprovides /bin/ps
procps-2.0.6-5

Now, let's see about what else is in there.


[ray@raymondjones ray]$ rpm -q --info procps
Name : procps Relocations: (not relocateable)
Version : 2.0.6 Vendor: Red Hat, Inc.
Release : 5 Build Date: Tue 07 Mar 2000 01:03:30 PM EST
Install date: Mon 01 May 2000 07:55:23 AM EDT Build Host: porky.devel.redhat.com
Group : Applications/System Source RPM: procps-2.0.6-5.src.rpm
Size : 288372 License: GPL
Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
Summary : Utilities for monitoring your system and processes on your system.Description :
The procps package contains a set of system utilities which provide
system information. Procps includes ps, free, sessreg, skill, snice,
tload, top, uptime, vmstat, w, and watch. The ps command displays a
snapshot of running processes. The top command provides a repetitive
update of the statuses of running processes. The free command
displays the amounts of free and used memory on your system. The

I <snipped> this because you can read it yourself, and it's getting too long.
HTH, Ray

datadan
08-08-2001, 06:42 PM
Thanks for the tip, but this obviously isn't my day...

I downloaded this rpm and filesystem from rpmfind and tried to RPM them in.
(I have RPM v4)They are not installing.

[root@mail src]# rpm -Uhiv --force procps-2.0.6-5.src.rpm
1:procps ########################################### [100%]
[root@mail src]# rpm -verify procps-2.0.6-5.src.rpm
package procps-2.0.6-5.src.rpm is not installed

What are my options now? Or am I a bozo? Did I do something wrong?

Malakin
08-08-2001, 07:01 PM
just type "rpm -verify procps" without the version information, more importantly is whether or not ps actually works for you now :)

datadan
08-08-2001, 07:22 PM
ps still doesn't work.

[root@mail src]# rpm -Uhiv procps-2.0.6-5.src.rpm
1:procps ########################################### [100%]
[root@mail src]# rpm -verify procps
package procps is not installed
[root@mail src]# ps
Segmentation fault (core dumped)


Any other ideas?
Thanks

Linuxcool
08-08-2001, 10:21 PM
I noticed that you are trying to install a src rpm package. Is that what you want to do? Or did you want to install an i386 type rpm? Also, you should either use U or i, but not both.

posterboy
08-09-2001, 05:33 AM
Yeah, get the .i386 package. Here's another handy thing to know. When you are querying the database, or, perhaps, removing a package, you need the exact name of the package itself. This is often NOT what you think it's going to be.Here's a handy way to get the name that is in the database:
rpm -qa |grep "any_part_of_it's_name". Another thing: RPM is undergoing some massive changes, soon to appear. I have rpm-4.0.3-0.57.6x which I do not recommend anyone try, yet. It contains within it, the DB3 code, and reworks and renames all your database files. It can fix many things on the fly, broken chains etc., and installs a cron job that makes a package list daily in /var/tmp. Using this list, and rpmfind, the entire DB could be rebuilt if ever necessary. Now, that's what we needed. A bad rpm db is a real system killer, unless you are a genius with Berkeley DB's. After this is done, you cannot use Ximian red-carpet, as it does not (yet) know about the new DB format. All this stuff just gets better and better. GO PENGUINS!

datadan
08-09-2001, 09:13 AM
You guys rock!

ps is working again. Thank you both loads.
Now onto more rpms and corrupt garbage.....

Thanks!

evulish
08-09-2001, 11:16 AM
Bah...stupid RPM's.

Switch to :cool: Debian :cool:

apt-get install :)

danrees
08-09-2001, 11:58 AM
Or apt-get-install
pppd: connection dropped by remote server

Ooops.
Not a practical solution on dial-up. :)

Linuxcool
08-09-2001, 05:52 PM
You're welcome datadan.