Merge branch 'LCTT/master'

This commit is contained in:
barney-ro 2014-09-18 19:53:11 +08:00
commit cea8fc7e85
11 changed files with 174 additions and 173 deletions

View File

@ -0,0 +1,38 @@
保持自由 - GCC应该接受收费插件吗
================================================================================
> GCC邮件列表中在争论GCC是否应该接受收费插件但是认为GCC是一个免费软件开发的媒介的论调占得了上风
Gcc以及它在模块化方面的缺失又一次作为一个问题被提出来并且和市场上的新的编译器LLVM做了对比。GCC巨大而古老5百万行代码30年研发时间并且还在继续增长。相比较而言LLVM更加年轻更加模块化并且允许所有的语言都作为一个模块添加进去。
LLVM的核心是开放源代码。GCC是反著作权copyleft代表是严格的免费软件她不允许以任何形式收费的插件的代码进入到GCC的代码中。争论的一种意见正如Eric Raymond说的“FSF不可能既阻止持有所有权的供应者添加他们的插件到一个免费编译器中又让这个编译器得到发展。就像马儿已经偏离了跑道反对插件策略的战略目标已经彻底的失败了”。
LLVM已经被苹果公司采用作为OS X和苹果硬件上GCC的替代品并且正在变得流行起来特别是在BSD系列操作系统的用户中间。LLVM的拥护者推测LLVM将会在更广阔的应用程序和移动设备开发市场上成为GCC的替代者。GCC的反对者们的观点是GCC太过复杂并且开发者们必须遵守她的反著作权copyleft。这限制了那些不想在反著作权copyleft许可证下发布他们的语言或者软件产品。作为典型苹果公司有一个很长的厌恶免费软件的历史。他们也不允许遵守反著作权copyleft的软件通过他们的App Store发布。
LLVM和GCC之间的争论其实是GNU/Linux和BSD系列、开放源代码和免费软件之间历史差异的翻新版。开放源码的开发者允许代码被以任何形式的使用免费或者维持版权。免费软件则严格地规定代码或者针对代码做的更新必须保持永久免费。免费软件的支持者认为完整的反著作权授权有助于GCC的发展并且已经将Linux和免费软件带到一个其他方式无法到达的高度同时保证了免费软件不会被收购或者堕落成商业利益。开放源码的支持者则认为开放源码更加的自由因为使用这没有受到限制他们可以随意使用包括开发非开源的版本。
GNU编译器集合GCC一直是免费软件发展的关键。编译器是稀有且昂贵的商品版权软件公司也充斥着对不符合标准的特性的需求。让软件兼容不同的机器和操作系统是一个非必需的复杂任务。GCC作为第一个真正免费的跨平台编译器简化了这个过程。
GCC对于软件开发者和移动设备开发者来说也是一个划时代的产品而不仅仅对于那些免费软件概念提出者。GCC不但免费和可移植她跨越不同硬件架构的普遍性和公用性使得更加容易做到软件的兼容性、鲁棒性和一致性。这和John GilmoreMichael Tiemann和David Henkel-Wallace在开发GCC时发现的一样。这也是Cygnus Solutions公司主要的卖点Cygnus Solutions是第一家靠卖免费软件赚钱的公司。[译注Cygnus Solutions是John Gilmore, Michael Tiemann and David Henkel- Wallace创办的公司同时也是GNU几个主要产品的贡献者]
LLVM和GCC之间主要的技术差异集中在组成前端中端后端的模块分割。前端用来翻译特定的语言。中端对翻译后产生的代码进行优化。后端将优化后的代码转化成特定硬件架构的机器码。LLVM将这些模块分割成不同的实体但是由于语义的和历史的原因GCC模糊了这些模块之间的界限。
对于一个免费软件项目添加一种新的语言或者架构到GCC也许是一个非常困难的过程添加有版权的插件也是不允许的。由于模块间界限非常不明确最容易的添加方法就是让添加的特性遵循免费软件许可证。最初的开发者也许想保持代码的封闭和版权但最后不得不将代码以免费软件发布。早期的C++以及Objective C就被认为是其中典型的例子。
与此相反LLVM允许甚至也许可以说是鼓励添加和发展版权语言和架构比如英伟达基于Clang和LLVM的对于GPU开发的NVCC。NVCC的源代码是免费软件或者开源软件开发者获取不到的。
Richard Stallman[对这方面的演讲中][1]旗帜鲜明地宣布“在免费软件运动中我们为自由而战。免费软件的的价值观从根本上就和开源软件不同后者以写更好的代码为终极目标。如果GCC从免费的编译器变成非免费的编译器她将不再能够达成自由的目标。
“Clang和LLVM的开发者不认可我们的价值观和目标所以得出了跟我们不一样的结论。他们反对我们采取的捍卫自由的措施因为他们只看到这对他们造成的不便却没有看到或者不关心他们真正的需求。我猜测他们把他们的工作定义为开源并且漠视自由。”
GCC开发者们不可能在许可证的条件上妥协。LLVM在某些行业的部门非常流行因为它很年轻很新在编程语言的浪潮中跳跃式发展着。流行的风向着更加开放奔跑GCC决心跟商业利益死磕也许是这个长期演进路上的一大助力。Unix公司们从80和90年代的Unix战争中学到了一些东西。语言和操作系统都是工具它们最好是开放和共享的。GCC是免费软件不属于任何人。
--------------------------------------------------------------------------------
via: http://www.linuxuser.co.uk/features/staying-free-should-gcc-allow-non-free-plug-ins
译者:[love\_daisy\_love](https://github.com/CNprober) 校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://lwn.net/articles/582241

View File

@ -1,39 +0,0 @@
CNprober translating..
Staying free should GCC allow non-free plug ins?
================================================================================
> Arguments in favour of the use of non-free plug-ins in GCC have again been raised on GCC mailing-lists, but are trumped by the arguments for GCC as a vehicle for free software development
Once again, Gcc and its lack of modularity has been raised as an issue and contrasted with LLVm, the new compiler on the block. GCC is huge and venerable: 5 million lines, 30 years, and growing. LLVM, in contrast, is relatively youthful and modular and allows free and proprietary languages to be added as modules.
The core of LLVM is open source. GCC is copyleft and unreservedly free software and doesnt allow plug-ins or other means to add proprietary extensions to the GCC code. The argument, as delivered by Eric Raymond, is that “FSF can no longer prevent proprietary vendors from plugging into a free compiler to improve their tools. That horse has left the barn; the strategic goal of the anti-plug-in policy has been definitively busted.”
LLVM has been sponsored by Apple as a replacement for GCC on OS X and Apple hardware and has grown in popularity, especially among users of the BSDs. Advocates of LLVM see it as a putative replacement for GCC in the wider market for applications developers and mobile devices. The argument against GCC is that its complexity, and the commitment of its developers to copyleft licensing, constrains the possibilities for proprietary developers, who do not want to release their language or architectural specifications under a copyleft licence. Apple, of course, has a long history of antipathy to free software, and doesnt allow applications licensed under copyleft licences to be distributed through its App Store.
To this extent, the argument between LLVM and GCC is a retread of the historic differences between GNU/Linux and the BSDs, between open source and free software. Open source developers allow the code to be reused in any context, free or proprietary. Free software is restrictive in that it insists that the code, and any modifications to the code, must remain free in perpetuity. Advocates of free software would argue that the integrity of copyleft licensing has been instrumental in the spread of GCC, and has taken Linux and free software into places it would not otherwise have reached, and that free software cannot be bought or corrupted by commercial or corporate interests. Open source advocates argue that open source is more free because the user has no restrictions and can do what he or she likes, including developing closed source versions of the code.
Since the beginning, the GNU Compiler Collection (GCC) was vital to the spread of free software. Compilers were a rare and expensive commodity and the compilers of the proprietary software companies were rife with features that were non-compliant with ANSI programming standards. Porting software between different machines and operating systems was an unnecessarily complicated task. GCC, the first truly free cross-platform compiler, commoditised this process.
GCC was a breakthrough product for applications developers and mobile device developers not just those who were committed to the idea of free software. Not only was GCC free and portable, its ubiquity and commonality across different architectures made it easier to port software between machines and to expect robust and consistent results as the likes of John Gilmore, Michael Tiemann and David Henkel- Wallace were to discover when they made GCC and its development the key selling point of Cygnus Solutions, the first company to make money by selling free software.
The primary technical difference between LLVM and GCC emerges in the separation between the modules that form the front ends, middle end and back ends of both GCC and LLVM. Front ends are used to interpret the code specific to the translation of a particular language. The middle end optimises the translated code. The back ends take the optimised code and apply the results to a specific target architecture. LLVM separates these modules into distinct entities, but for semantic and historical reasons, GCC obfuscates the separation between the modules.
Perhaps untypically for a free software project, it is a difficult process to add a new language or architecture to GCC and the adding of proprietary plug-ins is not allowed. There is little clear separation between the modules, and the path of least resistance is to add any feature under a free software licence. The early ports of C++ and Objective C (via Apple) are cited as examples where the original developers might have preferred to keep the code in-house and proprietary, and instead released the code as free software.
In contrast, LLVM has allowed, or perhaps even encouraged, the addition and development of proprietary languages and architectures one example being Nvidias NVCC for GPU computing, based on Clang and LLVM. The source code of NVCC is inaccessible to free software or open source developers.
Richard Stallmans [take on this][1] is characteristically resolute: “In the free software movement, we campaign for the freedom of the users of computing. The values of free software are fundamentally different from the values of open source, which makebettercodetheultimategoal. IfGCCwere to change from a free compiler into a platform for non-free compilers, it would no longer serve the goal of freedom very well.
“The Clang and LLVM developers reach different conclusions from ours because they do not share our values and goals. They object to the measures we have taken to defend freedom because they see the inconvenience of them and do not recognise (or dont care about) the need for them. I would guess they describe their work as open source and do not talk about freedom.”
The GCC developers are unlikely to compromise on the licensing terms. While LLVM is fashionable among certain sectors of industry, because it is young and new and has been quicker to jump on developing trands in programming languages, the prevailing wind is towards greater openness, and GCCs resolve to be incorruptible and free from commercial interests, may be the greater asset in the long term. The Unix companies learnt something from the Unix wars of the Eighties and Nineties. Languages and operating systems are tools, and are better open and shared. GCC is free software and belongs to nobody.
--------------------------------------------------------------------------------
via: http://www.linuxuser.co.uk/features/staying-free-should-gcc-allow-non-free-plug-ins
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://lwn.net/articles/582241

View File

@ -1,3 +1,4 @@
Translating by ZTinoZ
Linus Torvalds Promotes Linux for Desktops, Embedded Computing
================================================================================
> Linux kernel developer and open source leader Linus Torvalds spoke recently about the future of desktop Linux and Linux for embedded devices.
@ -28,4 +29,4 @@ via: http://thevarguy.com/open-source-application-software-companies/082514/linu
[a]:http://thevarguy.com/author/christopher-tozzi
[1]:http://linuxfoundation.org/
[2]:http://www.eweek.com/enterprise-apps/linux-founder-linus-torvalds-still-wants-the-desktop.html
[2]:http://www.eweek.com/enterprise-apps/linux-founder-linus-torvalds-still-wants-the-desktop.html

View File

@ -1,3 +1,4 @@
zpl1025
Happy Birthday Email
================================================================================
**An Indian American had the brain to invent electronic mail without which we cannot figure out a single day in this era.**
@ -20,4 +21,4 @@ via: http://www.efytimes.com/e1/fullnews.asp?edid=147170
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -1,42 +0,0 @@
Linux FAQs with Answers--How to change hostname on CentOS or RHEL 7
================================================================================
> Question: What is a proper way to change hostname on CentOS / RHEL 7 (permanently or temporarily)?
In CentOS or RHEL, there are three kinds of hostnames defined: (1) static, (2) transient, and (3) pretty. The "static" hostname is also known as kernel hostname, which is initialized from /etc/hostname automatically at boot time. The "transient" hostname is a temporary hostname assigned at run time, for example, by a DHCP or mDNS server. Both static and transient hostnames follow the same character restriction rules as Internet domain names. On the other hand, the "pretty" hostname is allowed to have a free-form (including special/whitespace characters) hostname, presented to end users (e.g., Dan's Computer).
In CentOS/RHEL 7, there is a command line utility called hostnamectl, which allows you to view or modify hostname related configurations.
To view hostname related settings:
$ hostnamectl status
![](https://farm4.staticflickr.com/3844/15113861225_e0e19783a7.jpg)
To view static, transient or pretty hostname only, use "--static", "--transient" or "--pretty" option, respectively.
$ hostnamectl status [--static|--transient|--pretty]
To change all three hostnames: static, transient, and pretty, simultaneously:
$ sudo hostnamectl set-hostname <host-name>
![](https://farm4.staticflickr.com/3855/15113489172_4e25ac87fa_z.jpg)
As shown above, in case of static/transient hostnames, any special or whitespace character will be removed, and any uppercase letter will automatically be converted to lowercase in the supplied <host-name> argument. Once the static hostname is changed, /etc/hostname will automatically be updated accordingly. However, /etc/hosts will not be updated to reflect the change, so you need to update /etc/hosts manually.
If you want to change a particular hostname only (static, transient or pretty), you can use "--static", "--transient" or "--pretty" option.
For example, to change hostname permanently, you can change the static hostname:
$ sudo hostnamectl --static set-hostname <host-name>
Note that you do not have to reboot the machine to activate permanent hostname change. The above command will change kernel hostname immediately. Log out, and log back in to see the new static hostname in the command-line prompt.
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/change-hostname-centos-rhel-7.html
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -1,50 +0,0 @@
Linux FAQs with Answers--How to create a new Amazon AWS access key
================================================================================
> **Question**: I was asked to provide an **AWS access key ID** and **secret access key** when configuring an application which requires access to my Amazon AWS account. How can I create a new AWS access key?
Amazon AWS security credentials are used to authenticate you and authorize any third-party application to access your AWS account. There are different types of AWS security credentials available, e.g., password, access key, multi-factor authentication, X.509 certificates, etc.
If you want to create a new access key (access key ID and secret access key), here is how to do it.
First, log in to [AWS console][1].
Choose "Security Credentials" menu from the top bar.
![](https://farm4.staticflickr.com/3855/14987093969_b106406596_o.png)
In the next page, choose "Access Keys (Access Key ID and Secret Access Key) option.
![](https://farm6.staticflickr.com/5584/15173842295_6110021f8f_z.jpg)
In the next page, you will see a list of existing access key IDs (if any). Note that you cannot retrieve "secret access keys" of existing access key IDs. For security reason, a secret access key is visible only at the time you create a new access key.
![](https://farm4.staticflickr.com/3897/15150859306_cd25d519be_o.png)
Click on "Create New Access Key", and it will create a new pair of access key ID and secret access key instantly.
![](https://farm4.staticflickr.com/3919/14987346068_232e8c73cd_z.jpg)
Either download a key file which contains a new access key, or copy and paste a new access key information. Again remember. Once you close this window, the secret access key will not be available again unless you download a key file.
### Multi-User AWS Account ###
If you are a corporate which has a corporate AWS account shared by multiple employees, you may want to use Identity and Access Management (IAM) to create and manage their access keys.
IAM is a web service which allows a corporate to manage multiple users and their associated security credentials under a single AWS account. Using IAM, multiple users can sign in as different identities under a single AWS account, and manage their own security credentials without tampering with each other's keys.
To manage IAM users, click on "Users" menu on the "Security Credentials" page.
![](https://farm6.staticflickr.com/5589/14987486468_a9120b1f8e_z.jpg)
Then you can create a new IAM user and manage their security credentials such as access keys.
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/create-amazon-aws-access-key.html
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://aws.amazon.com/console/

View File

@ -1,39 +0,0 @@
Vic020
Linux FAQs with Answers--How to remove PPA repository from command line on Ubuntu
================================================================================
> **Question**: I added a third-party PPA repository on my Ubuntu box some time ago. How can I remove the PPA repository?
A Personal Package Archives (PPA) is a Ubuntu way to allow independent developers and contributors to build and distribute any custom packages as a third-party APT repository via Launchpad. If you are a Ubuntu user, chances are that you have added some popular third-party PPA repositories to your Ubuntu system. If you want to remove any pre-configured PPA repository, here is how to do it.
Suppose you have a third-party PPA repository named "ppa:webapps/preview" added on your Ubuntu system, as follows.
$ sudo add-apt-repository ppa:webapps/preview
If you want to **delete a PPA repository alone**, run the following command.
$ sudo add-apt-repository --remove ppa:someppa/ppa
Note that the above command does not touch any packages installed or upgraded from the PPA itself.
If you want to **delete a PPA repository as well as all packages installed/upgraded from the PPA**, you can use ppa-purge command.
To install ppa-purge package:
$ sudo apt-get install ppa-purge
To remove a PPA repository and all its packages from the command line:
$ sudo ppa-purge ppa:webapps/preview
These methods can be useful when you [identify and purge broken PPA repositories][1]此文原文在同一个更新中文件名“20140915 Linux FAQs with Answers--How to find and remove obsolete PPA repositories on Ubuntu.md” after distro upgrade.
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/how-to-remove-ppa-repository-from-command-line-on-ubuntu.html
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://ask.xmodulo.com/find-remove-obsolete-ppa-repositories-ubuntu.html

View File

@ -1,3 +1,4 @@
How to create a software RAID-1 array with mdadm on Linux
================================================================================
Redundant Array of Independent Disks (RAID) is a storage technology that combines multiple hard disks into a single logical unit to provide fault-tolerance and/or improve disk I/O performance. Depending on how data is stored in an array of disks (e.g., with striping, mirroring, parity, or any combination thereof), different RAID levels are defined (e.g., RAID-0, RAID-1, RAID-5, etc). RAID can be implemented either in software or with a hardware RAID card. On modern Linux, basic software RAID functionality is available by default.
@ -220,4 +221,4 @@ via: http://xmodulo.com/2014/09/create-software-raid1-array-mdadm-linux.html
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[a]:http://xmodulo.com/author/gabriel
[a]:http://xmodulo.com/author/gabriel

View File

@ -0,0 +1,42 @@
Linux有问必答——如何在CentOS或RHEL 7上修改主机名
================================================================================
> 问题在CentOS/RHEL 7上修改主机名的正确方法是什么永久或临时
在CentOS或RHEL中有三种定义的主机名1静态的2瞬态的以及3优雅的。“静态”主机名也成为内核主机名是系统在启动时从/etc/hostname自动初始化的主机名。“瞬态”主机名是在系统运行时临时分配的主机名例如通过DHCP或mDNS服务器分配。静态主机名和瞬态主机名都遵从作为互联网域名同样的字符限制规则。而另一方面“优雅”主机名则被允许使用自由形式包括特殊/空白字符的主机名以展示给终端用户如Dan's Computer
在CentOS/RHEL 7中有个叫hostnamectl的命令行工具它允许你查看或修改与主机名相关的配置。
要查看主机名相关的设置:
$ hostnamectl status
![](https://farm4.staticflickr.com/3844/15113861225_e0e19783a7.jpg)
只查看静态、瞬态或优雅主机名,分别使用“--static”“--transient”或“--pretty”选项。
$ hostnamectl status [--static|--transient|--pretty]
要同时修改所有三个主机名:静态、瞬态和优雅主机名:
$ sudo hostnamectl set-hostname <host-name>
![](https://farm4.staticflickr.com/3855/15113489172_4e25ac87fa_z.jpg)
就像上面展示的那样,在修改静态/瞬态主机名时,任何特殊字符或空白字符会被移除,而提供的参数中的任何大写字母会自动转化为小写。一旦修改了静态主机名,/etc/hostname将被自动更新。然而/etc/hosts不会更新以对修改作出回应所以你需要手动更新/etc/hosts。
如果你只想修改特定的主机名(静态,瞬态或优雅),你可以使用“--static”“--transient”或“--pretty”选项。
例如,要永久修改主机名,你可以修改静态主机名:
$ sudo hostnamectl --static set-hostname <host-name>
注意,你不必重启机器以激活永久主机名修改。上面的命令会立即修改内核主机名。注销并重新登入后在命令行提示观察新的静态主机名。
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/change-hostname-centos-rhel-7.html
译者:[GOLinux](https://github.com/GOLinux)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,49 @@
Linux有问必答——如何创建新的亚马逊AWS访问密钥
================================================================================
> **问题**我在配置一个需要访问我的亚马逊AWS帐号的应用时被要求提供**AWS访问密钥ID**和**秘密访问密钥**我怎样创建一个新的AWS访问密钥呢
亚马逊AWS安全凭证用于验证你以及授权任何第三方应用访问你的AWS帐号有各种不同的AWS安全凭证可用如密码、访问密钥、多因素身份验证、X.509证书等。
如果你想要创建新的访问密钥访问密钥ID和秘密访问密钥请按一下步骤进行。
首先,登录到[AWS控制台][1]。
从顶部栏选择“安全凭证”菜单(图中红色方框所示)。
![](https://farm4.staticflickr.com/3855/14987093969_b106406596_o.png)
在下一页中选择“访问密钥访问密钥ID和秘密访问密钥”选项图中红色方框所示
![](https://farm6.staticflickr.com/5584/15173842295_6110021f8f_z.jpg)
在下一页中你将看到一个现存访问密钥ID列表如果有的话。注意你不能恢复现存访问密钥ID的“秘密访问密钥”。出于安全的原因秘密访问密钥只能在你创建新访问密钥时才可见。
![](https://farm4.staticflickr.com/3897/15150859306_cd25d519be_o.png)
点击“创建新访问密钥”见图示将会立即创建一个新的访问密钥ID和密码访问密钥对。
![](https://farm4.staticflickr.com/3919/14987346068_232e8c73cd_z.jpg)
要么下载一个包含有新访问密钥的密钥文件,要么复制并粘贴新访问密钥信息。再次提请牢记,一旦你关闭该窗口,秘密访问密钥将不再可用,除非你下载一个密钥文件。
### 多用户AWS帐号 ###
如果你是作为公司身份创建的帐号多个雇员共享这一公司帐号你可能想要使用身份和访问管理IAM来创建并管理他们的访问密钥。
IAM是一个web服务它允许一个公司管理多个用户及其与一个AWS帐号关联的安全凭证。使用IAM多个用户可以作为不同身份登入单一的AWS帐号并管理他们的安全凭证而不会相互干预对方的密钥。
要管理IAM用户点击“安全凭证”页面上的“用户”菜单见图示
![](https://farm6.staticflickr.com/5589/14987486468_a9120b1f8e_z.jpg)
然后你就可以创建一个新的IAM用户并管理他们的安全凭证比如访问密钥之类的东西。
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/create-amazon-aws-access-key.html
译者:[GOLinux](https://github.com/GOLinux)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://aws.amazon.com/console/

View File

@ -0,0 +1,39 @@
Linux FAQ - Ubuntu如何使用命令行移除PPA仓库
================================================================================
> **问题**: 前段时间我的Ubuntu增加了一个第三方的PPA仓库如何才能移除这个PPA仓库呢
个人软件包档案PPA是Ubuntu独有的解决方案允许独立开发者和贡献者构建、贡献任何定制的软件包来作为通过启动面板的第三方APT仓库。如果你是Ubuntu用户有可能你已经增加一些流行的第三方PPA仓库到你的Ubuntu系统。如果你需要删除掉已经预先配置好的PPA仓库下面将教你怎么做。
假如你有一个第三方PPA仓库叫“ppa:webapps/preview”增加到了你的系统中如下。
$ sudo add-apt-repository ppa:webapps/preview
如果你想要 **单独地删除一个PPA仓库**,运行下面的命令。
$ sudo add-apt-repository --remove ppa:someppa/ppa
注意,上述命令不会同时删除任何已经安装或更新的软件包。
如果你想要 **完整的删除一个PPA仓库并包括来自这个PPA安装或更新过的软件包**你需要ppa-purge命令。
安装ppa-purge软件包
$ sudo apt-get install ppa-purge
删除PPA仓库和与之相关的软件包运行下列命令
$ sudo ppa-purge ppa:webapps/preview
特别滴,在发行版更新后,你需要[分辨和清除已损坏的PPA仓库][1],这个方法特别有用!
--------------------------------------------------------------------------------
via: http://ask.xmodulo.com/how-to-remove-ppa-repository-from-command-line-on-ubuntu.html
译者:[Vic___](http://www.vicyu.net)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出
[1]:http://ask.xmodulo.com/find-remove-obsolete-ppa-repositories-ubuntu.html