Installing Software in Ubuntu(get from other website)

本文提供了一篇关于如何在Linux系统中安装软件的教程,包括使用软件中心、手动下载.deb包、.rpm和.tar.gz文件的方法。对于Ubuntu用户,推荐使用软件中心进行便捷安装。

I want to install some software such QQ and Sogoupinyin in my linux, and search the internet for help, then I find the paper in : http://www.psychocats.net/ubuntu/installingsoftware

Introduction
Installing 101: Software Center
Manual download: .deb
Last resorts: .rpm and .tar.gz
Links
Advanced interface: Synaptic Package Manager

In
Most Windows users who migrate to Ubuntu end up confused about software installation. They go to a website, download a .tar.gz file, double-click it, and don't see a Next-Next-Next-Finish wizard. This tutorial is intended to introduce you to the preferred methods of software installation in Ubuntu.

Rather than leaving it up to the user to track down installer files and keep applications updated, Ubuntu (like many other Linux distributions) has a software package management system that provides a searchable database of easily installable applications (like an online shopping cart but the software is cost-free), which it will download and install for you with a few clicks.

For those of you with smartphones, it's a very similar process to installing applications using the iTunes App Store or Android Market. It's also like Apple's Mac App Store.

Installing 101: Ubuntu Software Center
The best place to start with this package management process is to use a simple interface for it called Ubuntu Software Center.


You can most likely find Ubuntu Software Center on the left side of your screen.


If you're using Ubuntu 10.04, go to Applications and select Ubuntu Software Center.

If you already know what software you're looking for, you can begin typing the name of it in the top-right corner to begin the filtering process. If you don't know, you can also browse by category.


In this case, let's say you're looking for an audio recording and editing program called Audacity.

So after finding it, click Install and get prompted to authenticate with your password.


Then wait for Audacity to be downloaded and installed. Depending on the size of the software you're installing and the speed of your internet connection, this could take a few seconds or several minutes to complete.


Once it's finished installing, it's ready for you to use.

Manual download: .deb
Most of the time, if you need software, you can use the Software Center to install it from the online repositories. Sometimes, software is not available in the repositories, and you have to go to a website to download it. If you are able to download a file with a .deb extension, this is the software package format Ubuntu prefers.


After you download the .deb, it should run in the Ubuntu Software Center by default (if you're using Ubuntu 10.04, it may still run in the GDebi Package Installer). You can run it directly in that program (you can also download the .deb file and double-click it to launch the installer program).


After Ubuntu Software Center loads, click Install to install the .deb file. You'll be prompted for your password. Go ahead and enter it if you trust the source you downloaded the file from.


Pretty soon your application should be ready to use.

Last resorts: .rpm and .tar.gz
The preferred way to install software in Ubuntu is to use the package manager, which you can access through Ubuntu Software Center. As we've seen with Skype, sometimes you can also find a .deb for software not in the repositories. But what if you can't find a .deb?

.rpm
If you can't find a .deb, you can try a .rpm. These files are packaged for other Linux distributions (usually Fedora or Mandriva), but there is an application called alien (which you can install using Synaptic) that allows you (most of the time) to convert .rpm files to .deb. Read more about this process.

.tar.gz
As a last resort, you can download a .tar.gz file. The .tar.gz file extension indicates the file is a compressed set of files and folders (the compressed files you see in Windows usually have a .zip extension). If you see the .tar.gz, it could be compressed files that have a precompiled binary file, or it could be compressed files that have the source code allowing you to compile the application from source.

If you have trouble installing a .tar.gz file, you can ask for help on the Ubuntu Forums.

Links
There are other guides out there that help you understand software installation a bit better.

### 解决 `winget` 命令未被识别的错误 如果在运行 `winget` 时出现命令未被识别的错误,可能是由于以下原因之一:`winget` 尚未安装、环境变量未正确配置或系统版本不支持。以下是解决方法: #### 检查 `winget` 是否已安装 确保系统已安装 `winget`。可以通过以下命令验证: ```powershell Get-Command winget ``` 如果返回为空,则需要安装或更新 `winget`[^1]。 #### 安装或更新 `winget` 若 `winget` 未安装,可以前往 Microsoft Store 重新下载或升级 `winget`[^1]。此外,确保系统版本为 Windows 10 版本 2004 或更高版本,或者使用 Windows 11[^3]。 #### 配置环境变量 即使 `winget` 已安装,仍需确保其路径已添加到系统的 `Path` 环境变量中。默认情况下,`winget` 的可执行文件可能位于以下路径之一: - `C:\Program Files (x86)\Windows Kits\10\bin\<version>\x64` - `C:\Windows\System32` 可以通过以下步骤手动添加路径: 1. 打开“系统属性”对话框。 2. 转至“高级系统设置”,点击“环境变量”按钮。 3. 在“系统变量”部分找到 `Path`,点击“编辑”。 4. 添加上述路径之一(根据实际安装位置)。 #### 使用 PowerShell 动态添加路径 也可以通过 PowerShell 动态添加路径到当前会话: ```powershell $env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\<version>\x64" ``` 若希望永久生效,可以运行以下命令: ```powershell [Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\Program Files (x86)\Windows Kits\10\bin\<version>\x64", "User") ``` #### 验证更改 完成上述操作后,重新打开 PowerShell 并运行以下命令以验证 `winget` 是否可用: ```powershell winget --version ``` 如果返回版本信息,则问题已解决。 --- ### 从 PSGallery 安装 WinGet PowerShell 模块 WinGet PowerShell 模块允许用户通过 PowerShell 管理 WinGet 包。以下是安装方法: #### 安装 WinGet PowerShell 模块 确保系统已启用 PowerShellGet 模块。运行以下命令以安装 WinGet PowerShell 模块: ```powershell Install-Module -Name WinGet -Repository PSGallery -Force ``` 如果提示权限不足,请以管理员身份运行 PowerShell。 #### 更新模块 如果模块已安装但版本较旧,可以运行以下命令进行更新: ```powershell Update-Module -Name WinGet ``` #### 使用模块 安装完成后,可以通过以下命令搜索和安装软件包: ```powershell # 搜索软件包 Find-WinGetPackage -Name "Microsoft.PowerShell" # 安装软件包 Install-WinGetPackage -Name "Git.Git" -Exact -Source winget ``` --- ### 注意事项 如果仍然无法识别 `winget`,可能是由于权限不足或系统版本过低导致。尝试以管理员身份运行 PowerShell,并重复上述步骤[^5]。 ---
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值