1829526 Members
1817 Online
109991 Solutions
New Discussion

About system services

 
SOLVED
Go to solution
peterchu
Super Advisor

About system services

If I want to remove the service like nfs , and install a new version , how can I do it ? is it secure to do it when the system is running ? thx
5 REPLIES 5
Huc_1
Honored Contributor

Re: About system services

Whith an rpm install, this should not be a problem,
something like

#rpm -Uvh 'newnfsrpm'.rpm

This upgrade your current version you will have to restart your rpm deamons (services) in order for this new version to be activated.

You could do this at an off peak moment just in case ... but I think you should be ok

Hope this helps you

J-P
Smile I will feel the difference
peterchu
Super Advisor

Re: About system services

thx reply , If I want to totally reinstall the rpm , which rpm I need to install , i find many nfs services eg. nfs-server , nfs-utils , nfs-server-client , nfs-utils-client . thx
Alexander Chuzhoy
Honored Contributor
Solution

Re: About system services

to see the path to the executable:
which "executable's name"

to see what package a specific file belongs to:

rpm -qf /path/filename
peterchu
Super Advisor

Re: About system services

thx reply , I find the rpm , but can't uninstall it , could suggest how can I uninstall it ? thx.


[root@PETER RPMS]# rpm -qa |grep nfs
redhat-config-nfs-1.0.1-3
nfs-utils-1.0.1-2.80

[root@hksis RPMS]#
[root@hksis RPMS]# find / -name nfs-utils-1.0.1-2.80
[root@hksis RPMS]# rpm -Uvh nfs-utils-1.0.1-2.80
error: open of nfs-utils-1.0.1-2.80 failed: No such file or directory
Rajesh SB
Esteemed Contributor

Re: About system services

Hi Peterchu,

If you want to uninstall the existing package use the command

# rpm -e nfs-utils-1.0.1-2.80

nfs-utils-1.0.1-2.80 is not the file, is a rpm package.

If you want to upgrade to higher version of NFS Use command

# rpm -Uvh

Where rpmfile.rpm is the package you needs to be own.

Regards,
Rajesh