linux .deb 安装_快速提示:如何在Linux中安装.deb和.tar文件

linux .deb 安装_快速提示:如何在Linux中安装.deb和.tar文件linux.deb安装Inthisquicktutorial,IexplainhowtoinstallprogramsinLinuxusingterminalcommands.ThisparticulartutorialusesLinuxMint18(Cinnamon64-bit),butthecommandsprovidedbelow…

大家好,又见面了,我是你们的朋友全栈君。

linux .deb 安装

Installing .deb and .tar Files in Linux

In this quick tutorial, I explain how to install programs in Linux using terminal commands. This particular tutorial uses Linux Mint 18 (Cinnamon 64-bit), but the commands provided below are universal to other versions of Linux, such as Ubuntu. For those of you who are new to Linux, chances are you’ll be familiar with the in-built Software Manager:

在本快速教程中,我将说明如何使用终端命令在Linux中安装程序。 这个特定的教程使用Linux Mint 18 (Cinnamon 64位),但是下面提供的命令对其他版本的Linux(例如Ubuntu)通用。 对于那些不熟悉Linux的人,您可能会熟悉内置的Software Manager

In-built Linux software manager

In a nutshell, the Software Manager allows for easier installation of a variety of programs by simply searching for the program available, and then installing it from the manager. For instance, if a user wanted to install GIMP through the Software Manager, it would simply be a matter of locating the program and installing:

简而言之,通过简单地搜索可用的程序,然后从管理器中进行安装,软件管理器可以简化各种程序的安装。 例如,如果用户想通过软件管理器安装GIMP,则只需查找程序并安装:

Installing GIMP

However, installations in Linux can regularly get more complicated than this, in that it’s often necessary to install programs directly from the source code. Here, I explain how to install two particular types of extensions that often give newbies to Linux quite a headache. (It certainly did for me when I was starting out!)

但是,Linux中的安装通常会比这复杂得多,因为通常有必要直接从源代码安装程序。 在这里,我解释了如何安装两种特定类型的扩展,这些扩展通常使刚接触Linux的新手感到头疼。 (当我刚开始的时候,这肯定对我有用!)

We’re going to look at the methods to install both Debian (deb) and Tarball (tar.gz) files through the terminal, and the two respective examples that will be used in this tutorial are Dropbox and VeraCrypt. The usual disclaimers apply: these two programs are only used for illustration purposes, and I’m not endorsing or promoting any particular products in this article.

我们将研究通过终端安装Debian(deb)Tarball(tar.gz)文件的方法,本教程中将使用的两个示例分别是DropboxVeraCrypt 。 通常免责声明适用:这两个程序仅用于说明目的,在本文中我不认可或推广任何特定产品。

1.通过deb文件安装Dropbox (1. Installing Dropbox through deb file)

Installing deb files comes with varying degrees of difficulty. In other words, some programs that consist of deb files allow for direct installation, while those that contain many separate deb files typically must be installed through the terminal. Let’s look at the Dropbox example in installing the deb file.

安装deb文件有不同的难度。 换句话说,某些由deb文件组成的程序允许直接安装,而那些包含许多单独的deb文件的程序通常必须通过终端安装。 让我们看一下安装deb文件的Dropbox示例。

Firstly, we’re selecting the Ubuntu 64-bit version (or the appropriate one for your system):

首先,我们选择Ubuntu 64位版本(或适合您的系统的版本):

Choosing the Dropbox Ubuntu 64-bit version

Next, we’re prompted to install the package directly:

接下来,提示我们直接安装该软件包:

The Dropbox installer

While this particular deb file was easy enough to install, there are situations where we have to install the deb file directly from the terminal. For instance, instead of installing directly, the program could have prompted us to extract deb files to a particular location and then install from there.

尽管这个特定的deb文件很容易安装,但是在某些情况下,我们必须直接从终端安装deb文件。 例如,该程序可能提示我们将deb文件提取到特定位置,然后从那里安装,而不是直接安装。

Using Dropbox as an example, suppose that we were hypothetically prompted to extract files and then install. For illustration purposes, let’s call this folder Dropbox_deb, which is stored in our Downloads folder. Under this scenario, we would:

以Dropbox为例,假设我们被提示提取文件然后安装。 出于说明目的,我们将此文件夹Dropbox_deb ,该文件夹存储在我们的Downloads文件夹中。 在这种情况下,我们将:

a. Set our directory to the Dropbox_deb folder in Downloads:

一个。 将我们的目录设置为Downloads中的Dropbox_deb文件夹:

cd ~/Desktop/Dropbox_deb

b. Install the .deb files using the following command:

b。 使用以下命令安装.deb文件:

sudo dpkg -i *.deb

2.通过tar文件安装VeraCrypt (2. Installing VeraCrypt through tar file)

In some instances, a user has to install through a tar file, which is a standard source download in Linux. Here, we install VeraCrypt through a tar.bz2 file (highlighted in yellow text in the image below):

在某些情况下,用户必须通过tar文件安装,这是Linux中的标准源下载。 在这里,我们通过tar.bz2文件安装VeraCrypt(在下图中以黄色文本突出显示):

installing VeraCrypt through a tar.bz2 file

Once the download is complete, we’re then prompted to extract shell (sh) files, which we’ll extract to the desktop in this example:

下载完成后,系统会提示我们提取shell(sh)文件,在本示例中,我们将其提取到桌面:

extracting shell files

Once we’ve extracted the sh files, it’s then a matter of executing them using the appropriate terminal commands. We see that we have four separate sh files, we are going to execute the veracrypt-1.18-setup-console-x64 file. Note that this one does not have the .sh extension at the end: if it had, then we would need to add .sh at the end of the file in the terminal.

一旦提取了sh文件,就可以使用适当的终端命令执行它们了。 我们看到我们有四个单独的sh文件,我们将执行veracrypt-1.18-setup-console-x64文件。 请注意,该扩展名末尾没有.sh扩展名:如果有,则我们需要在终端文件的末尾添加.sh

We open up the terminal, setting the directory to Desktop (cd ~/Desktop), and run the commands as follows:

我们打开终端,将目录设置为Desktop (cd〜/ Desktop) ,然后运行以下命令:

chmod +x veracrypt-1.18-setup-console-x64
sh ./veracrypt-1.18-setup-console-x64

Once we’ve done this, we see that the program prompts us to conduct a full installation inside the terminal:

完成此操作后,我们会看到该程序提示我们在终端内进行完整安装:

full installation terminal prompt

Note that, in order to uninstall a program through the terminal, it’s done through the sudo apt-get remove command. For example, if a user wishes to uninstall Dropbox, it’s done through entering this command:

请注意,为了通过终端卸载程序,它是通过sudo apt-get remove命令完成的。 例如,如果用户希望卸载Dropbox,可通过输入以下命令来完成:

sudo apt-get remove dropbox

If you’re new to Linux, it’s important to take some time to familiarize yourself with the new OS, and nowhere is this more true than when it comes to installing programs, as many of them are not automatically included with the Software Manager. Here, we’ve covered two of the most common file types that are typically installed on Linux, and the above commands are key ones to keep in mind when it comes to installing new programs on this platform.

如果您是Linux的新手,那么花一些时间来熟悉新的操作系统很重要,这比安装程序要正确得多,因为其中很多都不会自动包含在软件管理器中。 在这里,我们介绍了通常在Linux上安装的两种最常见的文件类型,上述命令是在此平台上安装新程序时要记住的关键命令。

翻译自: https://www.sitepoint.com/quick-tip-how-to-install-deb-and-tar-files-in-linux/

linux .deb 安装

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/146215.html原文链接:https://javaforall.net

(0)
上一篇 2022年5月15日 下午5:20
下一篇 2022年5月15日 下午5:20


相关推荐

  • Android下基于Iptables的一种app网络访问控制方案(一)[通俗易懂]

    Android下基于Iptables的一种app网络访问控制方案(一)[通俗易懂]1.什么是Iptable?百度百科对于Iptables有详细的介绍。简单地说,Iptables是Linux内核提供的一套IP信息包过滤系统,对外由Iptables命令提供设置过滤规则的入口。Android是基于Linux的操作系统,支持Iptables。执行Iptables命令需要root权限。 2.如何配置Iptables命令链?假设一个安卓系统网络访问管理体系,需要针对不同

    2022年7月23日
    9
  • SparkStreaming的介绍及原理

    SparkStreaming的介绍及原理一、SparkStreaming的介绍1.离线和流处理的区别1)离线处理是针对一个批次,这个批次一般情况下都比较大流处理对应的数据是连续不断产生,处理时间间隔非常短的数据2)离线处理程序,因为数据是有限的(bounded),所以会终止流数据因为是连续不断的产生,所以数据是无限的(unbounded)由于数据的特征,一般离线处理比较缓慢,流数据处理相对较快流处理:…

    2022年6月20日
    40
  • POJ 1742 Coins ( 单调队列解法 )「建议收藏」

    POJ 1742 Coins ( 单调队列解法 )

    2022年1月20日
    60
  • DM368开发 — 毕设之硬件[通俗易懂]

    DM368开发 — 毕设之硬件[通俗易懂]这部分将参看相关的毕业论文设计来讲一下DM368的硬件部分。参看:相关论文基于DM368的高清视频监控系统设计与实现–文波一、系统硬件电路详细设计3.1TMS320DM368硬件平台简介TMS320DM368是德州仪器公司(TI)于2010年4月推出的新一代基于Davinci技术的高清视频处理器,内部集成了一颗ARM内核和两个视频图像协处理器,同时内部还集成了一个视频

    2022年8月13日
    5
  • PLANTINUM_plantuml流程图

    PLANTINUM_plantuml流程图bytotinunsplash1.背景随着工作时间的增长,越发觉得用专业的图形(用例图,时序图,ER图等等)去准确表达想法是很重要的。比如针对某个需求绘制的的用例图,比一段乏味的文字来的更加有意义,也便于别人理解。加之最近在学习源码的时候,发现很多书籍中都会使用类图,时序图等UML语言来描述逻辑关系。于是就在网上找了找绘制UML语言时,业界主流的一些工具都用什么,找了半天,大部分都用了下面…

    2025年7月20日
    2
  • java定义byte类型,详解java中的byte类型[通俗易懂]

    java定义byte类型,详解java中的byte类型[通俗易懂]介绍byte,即字节,由8位的二进制组成。在Java中,byte类型的数据是8位带符号的二进制数。在计算机中,8位带符号二进制数的取值范围是[-128,127],所以在Java中,byte类型的取值范围也是[-128,127]。取值范围分析一直在想为什么不是-128到128呢?今天分析了一下这个问题。首先我们得明白一件事情,那就是运算规则:########################…

    2022年6月18日
    33

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号