Merge pull request #18827 from robsean/patch-27

Translated
This commit is contained in:
Xingyu.Wang 2020-06-23 20:12:58 +08:00 committed by GitHub
commit a14bcd7aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 174 additions and 174 deletions

View File

@ -1,174 +0,0 @@
[#]: collector: (lujun9972)
[#]: translator: (robsean)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Using the Lightweight Apt Package Manager Synaptic in Ubuntu and Other Debian-based Linux Distributions)
[#]: via: (https://itsfoss.com/synaptic-package-manager/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
Using the Lightweight Apt Package Manager Synaptic in Ubuntu and Other Debian-based Linux Distributions
======
This weeks open source software highlight is Synaptic. Learn what this good old package manager can do that the modern software managers cannot.
### What is Synaptic package manager?
[Synaptic][1] is a lightweight GUI front end to [apt package management system][2] used in Debian, Ubuntu, Linux Mint and many other Debian/Ubuntu based distributions.
Basically, everything that you can do [using the apt-get commands in the terminal][3] can be achieved with Synaptic.
![][4]
There was a time when Synaptic was the default graphical software manager on almost all Debian-based Linux distributions. It was considered to be a user-friendly, easy to use way of managing applications.
Things changed as modern software manager tools like [GNOME Software][5] and [KDE Discover][6] came up with more modern and intuitive UI. These software managers have better interface, display the package information in a more friendly way with thumbnails, ratings and reviews.
Eventually, Synaptic got [confined to mostly lightweight Linux distributions][7].
#### Why would you use an ancient software like Synaptic package manager?
You dont have to. Not most of the time, of course.
But Synaptic is still a lot versatile than the likes of GNOME Software. Remember, it is basically GUI front end to apt which means it can do (almost) everything you do with [apt commands in the terminal][8].
For example, if you want to [prevent the update of a specific package in Ubuntu][9], you can do that in Synaptic but not in GNOME/Ubuntu Software Center.
![][10]
Also, I have noticed some issues with the Software Center in Ubuntu 20.04. Its slow to load, its slow when searching for software and it is full of snap application (that not everyone prefers).
Synaptic is also [one of the lightweight applications you can use in Ubuntu][7] to speed up your system a bit.
#### Synaptic package manager features
Here is a summary of what you can do with Synaptic:
* Update the package cache
* Upgrade the entire system
* Manage package repositories
* Search for packages by name, description, maintainer, version, dependencies etc
* List packages by section, status (installed), origin or more
* Sort packages by name, status, size or version
* Get information related to a package
* Lock package version
* Install specific version of a package
There are more features that you may explore on your own.
### How to install Synaptic package manager on Ubuntu
Synaptic package manager is available in the Universe repository in Ubuntu. If it is enabled, you may find it in the Software Center:
![Synaptic in Ubuntu Software Center][11]
You may also install Synaptic via command line. Make sure to enable universe repository first:
```
sudo add-apt-repository univers
```
And then update the cache (not required in Ubuntu 18.04 and higher versions):
```
sudo apt update
```
Now, use the command below to install synaptic package manager:
```
sudo apt install synaptic
```
Thats it.
### How to use Synaptic package manager
Once installed, you can search for Synaptic in the menu and start it from there:
![][12]
You can see that the interface is not among the best-looking ones here. Note the color of the checkboxes. White means the package is not installed, green means it is installed.
![][4]
You can search for an application and click on the checkbox to mark it for installation. It will also highlight packages (in green) that will be installed as dependencies. Hit apply to install the selected packages:
![][13]
You can [see all the installed packages in Ubuntu][14] using Synaptic. You can also choose to remove packages from this view.
![][15]
You can see packages available in individual repositories by displaying them based on Origin. Good way to see [which PPA offers what packages][16]. You can install or remove packages as described above.
![][17]
Usually, when you update Ubuntu, all the packages are updated at once. With Synaptic, you can easily choose which packages you want to update/upgrade to a newer version.
![][18]
You can also lock the version of packages so that they dont get updated along with the system updates.
![][10]
You can also search for packages using Synaptic. This is like [searching for packages using apt-cache search command][19].
![][20]
If you think you made the wrong selection, you can click Undo from the Edit menu.
There are plenty more you can do with Synaptic and I cannot cover all the possible usages. I have covered the most common ones here and I leave you to explore it, if you are going to use Synaptic.
### Synaptic is not for everyone
If you dont like Synaptic, you can remove it from the Software Center or using this command in terminal:
```
sudo apt remove synaptic
```
There was another lightweight software manager for Ubuntu called [AppGrid][21]. It hasnt been updated in recent times as far as I know.
Synaptic is certainly not for everyone. It lists libraries and packages that you wont otherwise see in the regular Software Center. If you removed a library that you were not aware of, it may cause issues.
I think that Synaptic is suitable for intermediate to advanced users who want better control over the package management without going the command line way.
What do you say? Have you ever used Synaptic for package management? Do you reply on software center or you just dive into the terminal? Do share your preference in the comment section.
--------------------------------------------------------------------------------
via: https://itsfoss.com/synaptic-package-manager/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://www.nongnu.org/synaptic/
[2]: https://en.wikipedia.org/wiki/APT_(software)
[3]: https://itsfoss.com/apt-get-linux-guide/
[4]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/synaptic-interface.png?ssl=1
[5]: https://wiki.gnome.org/Apps/Software
[6]: https://userbase.kde.org/Discover
[7]: https://itsfoss.com/lightweight-alternative-applications-ubuntu/
[8]: https://itsfoss.com/apt-command-guide/
[9]: https://itsfoss.com/prevent-package-update-ubuntu/
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/lock-version-synaptic.png?ssl=1
[11]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/06/synaptic-ubuntu-software-center.png?ssl=1
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/synaptic-package-manager-ubuntu.jpg?ssl=1
[13]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/install-packages-in-synaptic.png?ssl=1
[14]: https://itsfoss.com/list-installed-packages-ubuntu/
[15]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/remove-packages-using-synaptic.png?ssl=1
[16]: https://itsfoss.com/ppa-guide/
[17]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/see-packages-by-repositories-synaptic.png?ssl=1
[18]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/06/upgrade-packages-synaptic.png?ssl=1
[19]: https://itsfoss.com/apt-search-command/
[20]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/search-results-synaptic.png?ssl=1
[21]: https://itsfoss.com/app-grid-lighter-alternative-ubuntu-software-center/

View File

@ -0,0 +1,174 @@
[#]: collector: (lujun9972)
[#]: translator: (robsean)
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: url: ( )
[#]: subject: (Using the Lightweight Apt Package Manager Synaptic in Ubuntu and Other Debian-based Linux Distributions)
[#]: via: (https://itsfoss.com/synaptic-package-manager/)
[#]: author: (Abhishek Prakash https://itsfoss.com/author/abhishek/)
在 Ubuntu 或其它基于 Debian Linux 的发行版中使用轻量的 Apt 软件包管理器 Synaptic
======
这周的开源软件推荐是 Synaptic 。学习这个好的旧的软件包管理器可以做而现代的软件包管理器不能做什么。
### Synaptic 软件包管理器是什么?
[Synaptic][1] 是使用在 Debian, Ubuntu, Linux Mint 以及其它很多基于 Debian/Ubuntu 发行版中的一个 [apt 软件包管理器系统][2] 的轻量级 GUI 前端。
总的来说,你可以 [在终端中使用 apt-get 命令][3] 来完成的任何事,都可以通过 Synaptic 来实现。
![][4]
在一段时间内Synaptic 曾经几乎是所有基于 Debian Linux 发行版的默认图形化软件包管理器。它被认为是一种用户友好,易于使用的管理应用程序的方法。
随着像 [GNOME Software][5] 和 [KDE Discover][6] 等现代软件包管理器工具带来更现代和直观的图形用户界面,事情发生了变化。这些软件包管理器有更好的界面,以一种更友好的方式显示软件包信息,带有缩略图,评分和评论。
最后Synaptic [被限制使用于大多数的轻量级 Linux 发行版][7] 中。
#### 为什么你要使用像 Synaptic 软件包管理器这样的 ‘古老的’ 软件?
当然,在多大数的时间中,你没有必要这样做。
但是Synaptic 仍然比 GNOME 软件的功能要很多。记住,它基本上是 apt 的 GUI 前端,这意味着它可以(几乎)做任何你能够 [在终端中使用 apt 命令][8] 所做的事.
例如,如果你想 [在 Ubuntu 中阻止特定的软件包更新][9],你可以在 Synaptic 中做到这一点,但是你却不能 GNOME/Ubuntu 软件中心中实现。
![][10]
另外,我注意到在 Ubuntu 20.04 中的软件中心的一些问题。它加载速度缓慢,它搜索软件包时缓慢,并且它充满了 snap 应用程序 (不是每个人都喜欢).
Synaptic 也是 [你可以在 Ubuntu 中使用的一个轻量级应用程序][7] ,用以加速你的系统。
#### Synaptic 软件包管理器特色
这里是一个你可以使用 Synaptic 做什么的概括:
* 更新软件包缓存
* 升级整个系统
* 管理软件包包存储库
* 通过名称、描述、维护者、版本、依赖项等搜索软件包
* 通过组、状态(已安装)、源或更多信息列出软件包
* 通过名称、状态、大小或版本排序软件包
* 获取与软件包相关的信息
* 锁定软件包版本
* 安装具体指定版本的软件包
这里有很多功能,你可以自己去探索。
### 如何在 Ubuntu 上安装 Synaptic 软件包管理器
Synaptic 软件包管理器可在 Ubuntu 的 Universe 存储库中获得。如果 Universe 存储库未启用你可以在软件中心中找到Synaptic:
![Synaptic 在 Ubuntu 软件中心][11]
你也可以通过命令行来安装 Synaptic 。先确保启用 universe 存储库:
```
sudo add-apt-repository univers
```
然后更新缓存 (在 Ubuntu 18.04 及更高版本中不需要)
```
sudo apt update
```
现在,使用下面的命令来安装 synaptic 软件包管理器:
```
sudo apt install synaptic
```
这就是所有的安装过程。
### 如何使用 Synaptic 软件包管理器
在安装后,你可以在其菜单中开始搜索 Synaptic
![][12]
你可以看到这个界面不是这里最漂亮的一个界面。注意复选框的颜色。白色意味着软件包未安装,绿色意味软件包已安装。
![][4]
你可以搜索一个应用程序并单击复选框将标记其为安装。它也将高亮将被作为依赖关系项目的软件包(以绿色的形式)。单击应用来安装选择的软件包:
![][13]
你可以使用 Synaptic [查看在 Ubuntu 中安装的所有软件包][14] 。你也可以从这个视图中选择移除软件包。
![][15]
你可以看到在基于源显示的单个存储库中可用的软件包。一个很好的方法来查看 [哪个 PPA 提供什么软件包][16]。你可以通过如上所述的方法来安装或移除软件包。
![][17]
通常,当你更新 Ubuntu 时,所有的软件包都会同时更新。使用 Synaptic ,你可以轻松地选择你需要更新/升级到一个较新版本的软件包。
![][18]
你也可以锁定软件包的版本,以便它们就不会随着系统更新而被更新。
![][10]
你也可以使用 Synaptic 搜索软件包。这类似于 [使用 apt-cache search 命令搜索软件包][19]。
![][20]
如果你认为你做出了错误的选择,你可以从编辑菜单中单击撤销。
你可以使用 Synaptic 做很多事,我不可能涵盖所有可能的用法。我在这里已经涵盖了最常见的一些方法,如果你将要去使用 Synaptic 的话,我留给你去探索。
### Synaptic 并不适合所有的人
如果你不喜欢 Synaptic ,你可以在软件中心中移除它,或在终端中使用这个命令:
```
sudo apt remove synaptic
```
这里有另一个用于 Ubuntu 的被称为 [AppGrid][21] 的轻量级软件包管理器。据我所知,它已经很久没有更新了。
Synaptic 当然并不适合所有的人。它列出了在常规软件中心中你看不到的库和包。如果你移除了一个你不知道的库,那么它可能会引起问题。
我认为 Synaptic 更适合于那些既想更好地控制软件包管理器又不想使用命令行方法的中级到高级用户。
你有什么要说的吗?你曾经使用过 Synaptic 软件包管理器吗?你在软件中心中做出回应,还是你只在终端中探索?一定要在评论区中分享你的喜好。
--------------------------------------------------------------------------------
via: https://itsfoss.com/synaptic-package-manager/
作者:[Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[robsean](https://github.comrobsean)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/abhishek/
[b]: https://github.com/lujun9972
[1]: https://www.nongnu.org/synaptic/
[2]: https://en.wikipedia.org/wiki/APT_(software)
[3]: https://itsfoss.com/apt-get-linux-guide/
[4]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/synaptic-interface.png?ssl=1
[5]: https://wiki.gnome.org/Apps/Software
[6]: https://userbase.kde.org/Discover
[7]: https://itsfoss.com/lightweight-alternative-applications-ubuntu/
[8]: https://itsfoss.com/apt-command-guide/
[9]: https://itsfoss.com/prevent-package-update-ubuntu/
[10]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/lock-version-synaptic.png?ssl=1
[11]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/06/synaptic-ubuntu-software-center.png?ssl=1
[12]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/synaptic-package-manager-ubuntu.jpg?ssl=1
[13]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/install-packages-in-synaptic.png?ssl=1
[14]: https://itsfoss.com/list-installed-packages-ubuntu/
[15]: https://i1.wp.com/itsfoss.com/wp-content/uploads/2020/06/remove-packages-using-synaptic.png?ssl=1
[16]: https://itsfoss.com/ppa-guide/
[17]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/see-packages-by-repositories-synaptic.png?ssl=1
[18]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2020/06/upgrade-packages-synaptic.png?ssl=1
[19]: https://itsfoss.com/apt-search-command/
[20]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2020/06/search-results-synaptic.png?ssl=1
[21]: https://itsfoss.com/app-grid-lighter-alternative-ubuntu-software-center/