ubuntu应用程序在哪_如何在Ubuntu上同步并快速重新安装应用程序

ubuntu应用程序在哪

ubuntu应用程序在哪

image

The first thing any Linux user does after installing Linux is installing their favorite packages. Ubuntu makes this easy by syncing your installed applications between computers. And terminal users can install their favorite packages with a single command.

任何Linux用户在安装Linux之后要做的第一件事就是安装他们喜欢的软件包。 Ubuntu通过在计算机之间同步已安装的应用程序来简化此过程。 终端用户可以通过一个命令安装自己喜欢的软件包。

Whether you’re reinstalling Ubuntu from scratch, installing Ubuntu on a new computer, or performing a fresh installation of the latest version, these tricks can save you some time.

无论您是从头开始重新安装Ubuntu,在新计算机上安装Ubuntu还是执行最新版本的全新安装,这些技巧都可以为您节省一些时间。

Ubuntu软件中心同步 (Ubuntu Software Center Sync)

The Ubuntu Software Center has an application sync feature. To access it, click the File menu in the Ubuntu Software Center and select Sync Between Computers.

Ubuntu软件中心具有应用程序同步功能。 要访问它,请在Ubuntu软件中心中单击文件菜单,然后选择计算机之间同步。

image

The registration window asks you to create an “Ubuntu Software Center account,” but this is misleading. The Ubuntu Software Center works with Ubuntu single sign-on accounts – if you already have an Ubuntu One or Launchpad account, you already have a single sign-on account.

注册窗口要求您创建一个“ Ubuntu软件中心帐户”,但这具有误导性。 Ubuntu软件中心适用于Ubuntu单点登录帐户-如果您已经有一个Ubuntu One或Launchpad帐户,则您已经有一个单点登录帐户。

Screenshot at 2012-04-21 07^%02^%41

Once you’ve signed in, you can click over to the Installed tab and view the software you have installed on each of your connected computers. Select a computer and Ubuntu will compare its installed packages with the packages installed on your current system. This feature makes it easy to install packages after installing Ubuntu from scratch, even if you don’t remember the packages you had installed.

登录后,可以单击“已安装”选项卡,并查看已在每台连接的计算机上安装的软件。 选择一台计算机,Ubuntu将其安装的软件包与当前系统上安装的软件包进行比较。 即使您不记得已安装的软件包,使用此功能也可以轻松地从头开始安装Ubuntu之后安装软件包。

image

This feature is a bit limited at the moment – it only works with packages from Ubuntu’s default repositories, so packages from personal package archives (PPAs) or packages you’ve installed from outside a software repository won’t appear in the list. It also can’t automatically install applications on your other computer – you’ll have to open the list and install applications manually.

目前,此功能有所限制-仅适用于Ubuntu默认存储库中的软件包,因此,来自个人软件包档案(PPA)的软件包或您从软件存储库外部安装的软件包将不会出现在列表中。 它还无法在其他计算机上自动安装应用程序-您必须打开列表并手动安装应用程序。

终端命令 (Terminal Commands)

Another quick way to reinstall software is from the command line. In particular, the apt-get install command accepts an unlimited number of package names at once. Instead of hunting through the Ubuntu Software Center and installing them one by one, you can reinstall all your favorite packages with a single command.

重新安装软件的另一种快速方法是从命令行。 特别是, apt-get install命令一次接受无限数量的软件包名称。 您可以通过单个命令重新安装所有喜欢的软件包,而不必遍历Ubuntu软件中心并一步一步地安装它们。

For example, let’s say you want to install the Chromium web browser, Pidgin IM client, and Adobe Flash plug-in. Just run the following command in a terminal:

例如,假设您要安装Chromium Web浏览器,Pidgin IM客户端和Adobe Flash插件。 只需在终端中运行以下命令:

sudo apt-get install chromium-browser pidgin flashplugin-installer

sudo apt-get install Chrome浏览器pidgin flashplugin-installer

You can add an unlimited number of package names to this command, in any order – it doesn’t have to be alphabetical.

您可以以任何顺序向该命令添加无限数量的软件包名称-不必按字母顺序。

Screenshot at 2012-04-21 08^%22^%07

You can also feed a list of package names to the sudo apt-get remove command to quickly remove some packages that come preinstalled.

您还可以将软件包名称列表提供给sudo apt-get remove命令,以快速删除一些预装的软件包。

If you use packages from PPAs, run the appropriate sudo apt-add-repository commands for each PPA before the sudo apt-get install command. This gets all your favorite packages installed with just a few commands – if you want to automate it even further, create a shell script with these commands.

如果使用PPA中的软件包,请在sudo apt-get install命令之前为每个PPA运行适当的sudo apt-add-repository命令。 这仅需几个命令即可安装所有您喜欢的软件包–如果您想进一步自动化它,请使用这些命令创建一个shell脚本

第三方脚本 (Third-Party Scripts)

Some people have created their own shell scripts to automate the process of installing packages, adding PPAs, and removing packages after installing Ubuntu.

有些人创建了自己的Shell脚本,以在安装Ubuntu之后自动执行安装软件包,添加PPA和删除软件包的过程。

Silverwav’s Cleanstart is one such script. To use the script, you create a custom packages.list file containing a list of packages you want to install. This list can be categorized and have descriptions – the Cleanstart script filters out and ignores the descriptions. The cleanstart-packages.list.sh file is a shell script that installs the packages specified in the packages.list file. The real advantage here is you can have an organized packages.list file – with descriptions – that you can store your installed packages in. The actual script does little more than strip out the formatting and feed the list of packages to the apt-get install command, which you can do yourself.

Silverwav的Cleanstart就是这样的脚本之一。 要使用该脚本,请创建一个自定义的packages.list文件,其中包含要安装的软件包的列表。 此列表可以分类并具有描述-Cleanstart脚本会过滤掉并忽略描述。 cleanstart-packages.list.sh文件是一个shell脚本,用于安装packages.list文件中指定的软件包。 真正的好处是,您可以有一个有条理的packages.list文件(带有描述),可以将已安装的软件包存储在其中。实际的脚本只不过是去除格式并将软件包列表提供给apt-get安装命令,您可以自己做。

Screenshot at 2012-04-21 08^%41^%17

If you’re looking for a script that does more, there’s also And Any Void’s installation script. It was inspired by Cleanstart and allows you to specify PPAs to add and packages to remove in its configuration file. The script does more than Cleanstart, but you can still do the same thing with a few commands of your own.

如果您正在寻找功能更多的脚本,那么还有And Any Void的安装脚本。 它受Cleanstart的启发,允许您在其配置文件中指定要添加的PPA和要删除的软件包。 该脚本不仅可以执行Cleanstart,还可以使用自己的一些命令来执行相同的操作。

(And Any Void’s page is in French, but the scripts are in English. If you’re browsing with Chrome, Chrome will offer to translate the page for you.)

(而且,任何Void的页面都是法语,但是脚本是英语。如果您使用Chrome浏览器,Chrome会为您翻译页面。)



How do you install your favorite software after installing Ubuntu? Leave a command and let us know if you have any tricks to share.

安装Ubuntu后如何安装自己喜欢的软件? 留下命令,让我们知道您是否有任何技巧要分享。

翻译自: https://www.howtogeek.com/111989/how-to-sync-quickly-reinstall-applications-on-ubuntu/

ubuntu应用程序在哪

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值