Can I copy one shell "zsh" from one server to another.

Hi Guys,

We are doing one production migration,
we have copied "/etc/shells" file form old to new server.
/etc/shells file contains below entries:-

bash-3.2# more /etc/shells
/bin/false
/bin/csh
/bin/jsh
/bin/ksh
/bin/rksh
/bin/rsh
/sbin/sh
/sbin/zsh
/usr/bin/zsh
/usr/bin/bash
/usr/bin/csh
/usr/bin/jsh
/usr/bin/rksh
/usr/bin/ksh
/usr/bin/sh
/usr/bin/tcsh
/usr/bin/zsh
/usr/local/bin/pwsh

but one shell is missing:-

bash-3.2# ls -l /sbin/zsh
/sbin/zsh: No such file or directory
bash-3.2# 
on my old prod server it is present and has no link;-
-bash-3.00$ cd /sbin
-bash-3.00$ ls -l zsh
-r-xr-xr-x   1 root     bin       507912 Jan 23  2005 zsh
-bash-3.00$

so can i copy this "zsh" shell from my old production server to new prod server ?
Will it cause any issue?
Please advise.
Thanks,
Manali
---------- Post added 04-26-13 at 10:19 AM ----------
System is Solaris 10

You should not copy raw executable files, you should install the appropriate package. This will track whether any dependencies for it are needed.

You can get the package name with

grep /sbin/zsh /var/sadm/install/contents
1 Like