个人工具

“模板:Ubuntu:Feisty/UbuntuUpdates/zh”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(Ubuntu Updates开译)
 
Ubuntu Updates
第1行: 第1行:
== Ubuntu Updates ==
+
== Ubuntu系统更新 ==
  
==== Apt, Software and Package Basics ====
+
==== Apt使用, 软件和包的基本管理 ====
  
*Read [[#General Notes]]
+
*参阅 [[#General Notes|基本知识]]
*Read [[#How to add extra repositories]]
+
*参阅 [[#How to add extra repositories|添加额外软件源]]
  
Here is some basic information on how to use the Apt package management tools.
+
Apt软件管理程序的基本使用
 
+
*安装软件
*Installing packages
+
  
 
  sudo aptitude install <packagename>
 
  sudo aptitude install <packagename>
  
Examples:
+
示例:
  
 
  sudo aptitude install mpd sbackup
 
  sudo aptitude install mpd sbackup
  
*Removing packages
+
*删除软件
  
 
  sudo aptitude remove <packagename>
 
  sudo aptitude remove <packagename>
  
Examples:
+
示例:
  
 
  sudo aptitude remove mpd sbackup
 
  sudo aptitude remove mpd sbackup
  
*Searching for packages
+
*搜索/查找指定软件
  
 
  sudo aptitude search <keywords>
 
  sudo aptitude search <keywords>
  
Examples:
+
示例:
  
 
  sudo aptitude search Music MP3
 
  sudo aptitude search Music MP3
 
  sudo aptitude search "Text Editor"
 
  sudo aptitude search "Text Editor"
  
*Updating Apt database (used after adding/removing Apt repositories)
+
*更新软件列表(添加/删除源后必须进行的操作)
  
 
  sudo aptitude update
 
  sudo aptitude update
  
*Upgrading packages
+
*更新已安装的软件包
  
 
  sudo aptitude upgrade
 
  sudo aptitude upgrade
  
*Upgrade entire distribution
+
*更新整个系统
  
 
  sudo aptitude dist-upgrade
 
  sudo aptitude dist-upgrade
  
*Install downloaded Ubuntu (Debian) package (.deb)
+
*安装下载的XXX.deb软件包
  
 
  sudo dpkg -i package.deb
 
  sudo dpkg -i package.deb
  
*Remove Ubuntu (Debian) package
+
*删除dpkg -i安装的软件包
  
 
  sudo dpkg -r package
 
  sudo dpkg -r package
  
*Reconfigure/Repair installed package
+
*重新配置/修复已安装的软件包
  
 
  sudo dpkg-reconfigure package
 
  sudo dpkg-reconfigure package
  
Examples:
+
示例:
  
 
  sudo dpkg-reconfigure mpd
 
  sudo dpkg-reconfigure mpd
  
*Handling ".tar.gz" (Tar/GZip) Archives
+
*".tar.gz" (Tar/GZip)压缩包的相关操作
  
To extract:
+
解压:
  
 
  tar xvzf package.tar.gz
 
  tar xvzf package.tar.gz
  
To create:
+
压缩:
  
 
  tar cvfz package.tar.gz folder
 
  tar cvfz package.tar.gz folder
  
*Handling ".tar.bz" (Tar/BZip) Archives
+
*".tar.bz" (Tar/BZip)压缩包的操作
  
To extract:
+
解压:
  
 
  tar xvjf package.tar.bz
 
  tar xvjf package.tar.bz
  
To create:
+
压缩:
  
 
  tar cvjf package.tar.bz folder
 
  tar cvjf package.tar.bz folder
  
*Extracting ".bz" Archives
+
*".bz"压缩包的操作
  
 
  bunzip2 file.bz
 
  bunzip2 file.bz
  
*Extracting ".gz" Archives
+
*解压".gz"压缩包
  
 
  gunzip file.gz
 
  gunzip file.gz
  
*Building from Source
+
*从源码编译安装软件
 
+
Make sure you have all the neccesary development tools (i.e. libraries, compilers, headers)
+
  
 +
在进行源码编译安装前请确认已经建立好必要的编译环境 (比如安装必须的libraries, compilers, headers)
 
  sudo aptitude install build-essential
 
  sudo aptitude install build-essential
 
  sudo aptitude install linux-headers-`uname -r`
 
  sudo aptitude install linux-headers-`uname -r`
  
Extract your package (as detailed above)
+
解压源码包(请参阅上文各种格式压缩包的操作)
  
 
  tar xvzf package.tar.gz
 
  tar xvzf package.tar.gz
  
Commence the build process
+
开始编译工作:
  
 
  cd /path/to/extracted/package
 
  cd /path/to/extracted/package
第107行: 第105行:
 
  make install
 
  make install
  
If build is successful, consider making an Ubuntu (Debian) package (.deb) for future use:
+
如果可以正常编译/安装/使用该软件,可以考虑将它制作成deb包,以供将来使用(但用下面方法制作出来的deb包尽量不要提供给他人使用)
 
+
安装打包工具:
Install package tools:
+
  
 
  sudo aptitude install checkinstall
 
  sudo aptitude install checkinstall
  
Rebuild package using "checkinstall":
+
"checkinstall"重建编译软件包:
  
 
  cd /path/to/extracted/package
 
  cd /path/to/extracted/package
第120行: 第117行:
 
  checkinstall
 
  checkinstall
  
Keep the resulting ".deb" file for future use. It can be installed using:
+
备份好最后得到的.deb格式的软件包,它可以通过下面的方法进行安装:
  
 
  sudo dpkg -i package.deb
 
  sudo dpkg -i package.deb
  
Note: These are basic instructions that may not always work. Some packages require additional dependencies and optional parameters to be specified in order to build them successfully.
+
注意:这里只是讲了最基本的操作,由于各种软件编译所需的开发包,所需用到的编译参数各不相同,故在实际运用时需随机应变.
 
+
==== How to manually update Ubuntu ====
+
  
*Read [[#General Notes]]
+
==== 手动更新系统 ====
*Read [[#How to add extra repositories]]
+
*参阅 [[#General Notes|基本知识]]
 +
*参阅 [[#How to add extra repositories|添加额外软件源]]
  
 
  sudo aptitude update
 
  sudo aptitude update
第135行: 第131行:
 
  sudo aptitude dist-upgrade
 
  sudo aptitude dist-upgrade
  
'''OR'''
+
'''或者'''
  
Use Update Manager: ''System -> Administration -> Update Manager''
+
使用更新管理程序: ''系统 -> 管理 -> 更新程序''

2007年5月30日 (三) 09:50的版本

Ubuntu系统更新

Apt使用, 软件和包的基本管理

Apt软件管理程序的基本使用

  • 安装软件
sudo aptitude install <packagename>

示例:

sudo aptitude install mpd sbackup
  • 删除软件
sudo aptitude remove <packagename>

示例:

sudo aptitude remove mpd sbackup
  • 搜索/查找指定软件
sudo aptitude search <keywords>

示例:

sudo aptitude search Music MP3
sudo aptitude search "Text Editor"
  • 更新软件列表(添加/删除源后必须进行的操作)
sudo aptitude update
  • 更新已安装的软件包
sudo aptitude upgrade
  • 更新整个系统
sudo aptitude dist-upgrade
  • 安装下载的XXX.deb软件包
sudo dpkg -i package.deb
  • 删除dpkg -i安装的软件包
sudo dpkg -r package
  • 重新配置/修复已安装的软件包
sudo dpkg-reconfigure package

示例:

sudo dpkg-reconfigure mpd
  • ".tar.gz" (Tar/GZip)压缩包的相关操作

解压:

tar xvzf package.tar.gz

压缩:

tar cvfz package.tar.gz folder
  • ".tar.bz" (Tar/BZip)压缩包的操作

解压:

tar xvjf package.tar.bz

压缩:

tar cvjf package.tar.bz folder
  • ".bz"压缩包的操作
bunzip2 file.bz
  • 解压".gz"压缩包
gunzip file.gz
  • 从源码编译安装软件

在进行源码编译安装前请确认已经建立好必要的编译环境 (比如安装必须的libraries, compilers, headers)

sudo aptitude install build-essential
sudo aptitude install linux-headers-`uname -r`

解压源码包(请参阅上文各种格式压缩包的操作)

tar xvzf package.tar.gz

开始编译工作:

cd /path/to/extracted/package
./configure
make
make install

如果可以正常编译/安装/使用该软件,可以考虑将它制作成deb包,以供将来使用(但用下面方法制作出来的deb包尽量不要提供给他人使用) 安装打包工具:

sudo aptitude install checkinstall

用"checkinstall"重建编译软件包:

cd /path/to/extracted/package
./configure
make
checkinstall

备份好最后得到的.deb格式的软件包,它可以通过下面的方法进行安装:

sudo dpkg -i package.deb

注意:这里只是讲了最基本的操作,由于各种软件编译所需的开发包,所需用到的编译参数各不相同,故在实际运用时需随机应变.

手动更新系统

sudo aptitude update
sudo aptitude upgrade
sudo aptitude dist-upgrade

或者

使用更新管理程序: 系统 -> 管理 -> 更新程序