Question

I am trying to install NFS Server to my brand new Ubuntu machine and is about to follow this article. But before that, is there any way to figure out whether it is already installed?

I am running Ubuntu 12.04

Update:-

This is what I got after running this -

dpkg -la | grep nfs

ii  libnfsidmap2                     0.23-2                                            An nfs idmapping library
ii  nfs-common                       1:1.2.2-1ubuntu1                                  NFS support files common to client and server

And aptitude command gave me like this -

aptitude search nfs

p   fai-nfsroot                                                                                                    - Fully Automatic Installation nfsroot package
v   knfs                                                                                                           -
p   libfile-nfslock-perl                                                                                           - perl module to do NFS (or not) locking
p   libnfsidmap-dev                                                                                                - header files and docs for libnfsidmap
i A libnfsidmap2                                                                                                   - An nfs idmapping library
p   libyanfs-java                                                                                                  - Yet Another NFS - a Java NFS library
v   nfs-client                                                                                                     -
i   nfs-common                                                                                                     - NFS support files common to client and server
p   nfs-kernel-server                                                                                              - support for NFS kernel server
v   nfs-server                                                                                                     -
p   nfs4-acl-tools                                                                                                 - Commandline and GUI ACL utilities for the NFSv4 client
p   nfswatch                                                                                                       - Program to monitor NFS traffic for the console
p   p3nfs                                                                                                          - to mount the file systems on the Psion/Symbian PDA/Phone
p   unfs3                                                                                                          - User-space NFSv3 Server
p   unionfs-fuse                                                                                                   - Fuse implementation of unionfs

I tried netstat command as well -

netstat -tl | grep 2049

and nobody is listening to that as well

Was it helpful?

Solution

dpkg -la | grep nfs

will list all packages that you have installed and whose name includes nfs.

aptitude search nfs

will tell you that the nfs server package is called nfs-server. Since you are not seeing that, I'd say you don't have it installed.

To be safe, also do:

netstat -tl | grep 2049

to check whether anyone is already listening on the nfs port.

OTHER TIPS

If you know the package's name, try dpkg -l package-name. That should list the package (with two is next to it) if it's installed, or give you an error if it isn't.

Ubuntu 13.10 (which is running in a VM here) calls its server package nfs-kernel-server. (There might be other packages or other names on older versions; looks like it used to be called knfs. But nfs-kernel-server is the recommended package.)

If you're using a decent package management program, though (like Synaptic, which i highly recommend), you can just type some stuff into a search box and it'll find matches for you -- at which point you can set it to install (unless you're installing from source, which i don't recommend if you can get by with the version Ubuntu includes with that release).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top