add-apt-repository in debian
来源:互联网 发布:淘宝卖家app叫什么 编辑:程序博客网 时间:2024/06/08 04:22
在ubuntu下 add-apt-repository 命令挺好用,今天看别人推荐fcitx的新功能就想试试。以前我是从debina的backports里面直接拉的,版本为4.0.1~现在通过ppa直接从fcitx的站点里拿了
原文地址:http://blog.anantshri.info/howto-add-ppa-in-debian/
1. Download the script
$ wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt
2. Save this file in /usr/sbin/
$ cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository
3. Change permissions to execute
$ chmod o+x /usr/sbin/add-apt-repository
4. Change ownership to root
$chown root:root /usr/sbin/add-apt-repository
5. Now when ever you need to execute command type
$ sudo add-apt-repository ppa:ppa-name
Opening this script to larger audience so that we can crowdsource efforts if someone likes it.
hope this can help someone
#!/bin/bashif [ $# -eq 1 ]NM=`uname -a && date`NAME=`echo $NM | md5sum | cut -f1 -d" "`thenppa_name=`echo "$1" | cut -d":" -f2 -s`if [ -z "$ppa_name" ]thenecho "PPA name not found"echo "Utility to add PPA repositories in your debian machine"echo "$0 ppa:user/ppa-name"elseecho "$ppa_name"echo "deb http://ppa.launchpad.net/$ppa_name/ubuntu lucid main" >> /etc/apt/sources.listapt-get update >> /dev/null 2> /tmp/${NAME}_apt_add_key.txtkey=`cat /tmp/${NAME}_apt_add_key.txt | cut -d":" -f6 | cut -d" " -f3`apt-key adv --keyserver keyserver.ubuntu.com --recv-keys $keyrm -rf /tmp/${NAME}_apt_add_key.txtfielseecho "Utility to add PPA repositories in your debian machine"echo "$0 ppa:user/ppa-name"fi
Install Fcitx
sudo add-apt-repository ppa:fcitx-team/nightlysudo apt-get updatesudo apt-get install fcitxsudo apt-get install fcitx-module-cloudpinyin
over~
- add-apt-repository in debian
- debian add-apt-repository not found
- add-apt-repository 命令
- add-apt-repository
- add-apt-repository用法
- add-apt-repository PPA
- add-apt-repository
- add-apt-repository 介绍
- add-apt-repository PPA
- apt-add-repository
- add-apt-repository问题
- add-apt-repository PPA
- add-apt-repository添加源
- no add-apt-repository command
- add-apt-repository命令不存在
- add-apt-repository出Exception问题
- add-apt-repository PPA(转)
- add-apt-repository: command not found
- mysql命令行常用命令
- VC6的动态库工程dll,转成VS2008下可以使用
- Actor模型
- SSH Secure Shell Client中文乱码的解决办法
- CSS选择器、优先级与匹配原理
- add-apt-repository in debian
- 源代码阅读技巧3
- linux device driver之usb驱动编程
- 软件版本常识和软件版本号命名规则
- mysql服务器远程访问
- 非MFC中使用Cstring
- oracle 进程查看v$session
- UBuntu下USB转串口配置
- HDU 1002 A + B Problem II