红联Linux门户
Linux帮助

Solaris上的Linux准等价命令

发布时间:2007-01-17 00:47:39来源:红联作者:Dragoncity
1) 查看开放端口
Linux: netstat -atn
Solaris: netstat -P tcp -f inet -an
2) 安装软件包
Linux: rpm -ivh stardict.rpm
Solaris: pkgadd -d `pwd` SUNWstardict
3) 卸载软件包
Linux: rpm -e stardict
Solaris: pkgrm SUNWstardict
4) 查看安装包的所有安装文件
Linux: rpm -ql stardict
Solaris: pkgchk -l SUNWstardict | grep Pathname
在Solaris上还可以根据某一个文件来判断该文件属于哪一个安装包
# pkgchk -lp /usr/share/stardict/sounds/menushow.wav
Pathname: /usr/share/stardict/sounds/menushow.wav
Type: regular file
Expected mode: 0644
Expected owner: root
Expected group: bin
Expected file size (bytes): 6250
Expected sum(1) of contents: 60494
Expected last modification: Jul 18 11:26:00 2006
Referenced by the following packages:
SUNWstardict
Current status: installed
文章评论

共有 0 条评论