设为首页 - 加入收藏 ASP站长网(Aspzz.Cn)- 科技、建站、经验、云计算、5G、大数据,站长网!
热搜: 数据 手机 公司
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

如何在Linux中列出可用的软件包组(5)

发布时间:2018-10-16 19:15 所属栏目:117 来源:Prakash Subramanian
导读:如果需要列出相关联的软件包,也可以执行以下这个命令。 # zypper info pattern file_server Loading repository data... Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider us

如果需要列出相关联的软件包,也可以执行以下这个命令。

  1. # zypper info pattern file_server
  2. Loading repository data...
  3. Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
  4. Warning: Repository 'Main Update Repository' appears to be outdated. Consider using a different mirror or server.
  5. Reading installed packages...
  6.  
  7. Information for pattern file_server:
  8. ------------------------------------
  9. Repository : Main Repository (OSS)
  10. Name : file_server
  11. Version : 20150918-25.1
  12. Arch : x86_64
  13. Vendor : openSUSE
  14. Installed : No
  15. Visible to User : Yes
  16. Summary : File Server
  17. Description :
  18. File services to host files so that they may be accessed or retrieved by other computers on the same network. This includes the FTP, SMB, and NFS protocols.
  19. Contents :
  20. S | Name | Type | Dependency
  21. ---|-------------------------------|---------|------------
  22. i+ | patterns-openSUSE-base | package | Required
  23. | patterns-openSUSE-file_server | package | Required
  24. | nfs-kernel-server | package | Recommended
  25. i | nfsidmap | package | Recommended
  26. i | samba | package | Recommended
  27. i | samba-client | package | Recommended
  28. i | samba-winbind | package | Recommended
  29. | tftp | package | Recommended
  30. | vsftpd | package | Recommended
  31. | yast2-ftp-server | package | Recommended
  32. | yast2-nfs-server | package | Recommended
  33. i | yast2-samba-server | package | Recommended
  34. | yast2-tftp-server | package | Recommended

如果需要列出相关联的软件包,也可以执行以下这个命令。

  1. # zypper info -t pattern file_server
  2. Loading repository data...
  3. Warning: Repository 'Update Repository (Non-Oss)' appears to be outdated. Consider using a different mirror or server.
  4. Warning: Repository 'Main Update Repository' appears to be outdated. Consider using a different mirror or server.
  5. Reading installed packages...
  6.  
  7.  
  8. Information for pattern file_server:
  9. ------------------------------------
  10. Repository : Main Repository (OSS)
  11. Name : file_server
  12. Version : 20150918-25.1
  13. Arch : x86_64
  14. Vendor : openSUSE
  15. Installed : No
  16. Visible to User : Yes
  17. Summary : File Server
  18. Description :
  19. File services to host files so that they may be accessed or retrieved by other computers on the same network. This includes the FTP, SMB, and NFS protocols.
  20. Contents :
  21. S | Name | Type | Dependency
  22. ---|-------------------------------|---------|------------
  23. i+ | patterns-openSUSE-base | package | Required
  24. | patterns-openSUSE-file_server | package | Required
  25. | nfs-kernel-server | package | Recommended
  26. i | nfsidmap | package | Recommended
  27. i | samba | package | Recommended
  28. i | samba-client | package | Recommended
  29. i | samba-winbind | package | Recommended
  30. | tftp | package | Recommended
  31. | vsftpd | package | Recommended
  32. | yast2-ftp-server | package | Recommended
  33. | yast2-nfs-server | package | Recommended
  34. i | yast2-samba-server | package | Recommended
  35. | yast2-tftp-server | package | Recommended

如何在 Debian/Ubuntu 系统上列出可用的软件包组

由于 APT 或 APT-GET 软件包管理器没有为基于 Debian/Ubuntu 的系统提供这样的选项,因此需要使用 tasksel 命令来获取相关信息。

tasksel 是 Debian/Ubuntu 系统上一个很方便的工具,只需要很少的操作就可以用它来安装好一组软件包。可以在 /usr/share/tasksel 目录下的 .desc 文件中安排软件包的安装任务。

默认情况下,tasksel 工具是作为 Debian 系统的一部分安装的,但桌面版 Ubuntu 则没有自带 tasksel,这个功能类似软件包管理器中的元包(meta-packages)。

tasksel 工具带有一个基于 zenity 的简单用户界面,例如命令行中的弹出图形对话框。

(编辑:ASP站长网)

网友评论
推荐文章
    热点阅读