debian+debian 查看安装了了哪些程序

后使用快捷导航没有帐号?
查看: 1784|回复: 0
在Redhat系Linux版本(CentOS/Fedora/RHEL)下,我们想要查看rpm包的内容,直接使用 rpm -ql packagename 命令就可以了,那么在Debian/Ubuntu Linux下又如何查看.deb软件包的内容呢?
系统默认安装的软件和命令无法查看,这时候我们需要安装 apt-file 命令工具,该命令可以查看使用APT作为软件包管理器的系统deb文件的内容。
安装apt-file#apt-get update && apt-get install apt-file复制代码安装过程中,将会看到类似下面的输出信息:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
&&libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl menu
Suggested packages:
&&gksu kdebase-bin kdebase-runtime ktsuss sux
The following NEW packages will be installed:
&&apt-file libapt-pkg-perl libconfig-file-perl liblist-moreutils-perl menu
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 626kB of archives.
After this operation, 2687kB of additional disk space will be used.
Do you want to continue [Y/n]? y
lenny/main libconfig-file-perl 1.42-1 [11.7kB]
lenny/main libapt-pkg-perl 0.1.22+b1 [89.6kB]
lenny/main liblist-moreutils-perl 0.22-1+b1 [51.9kB]
lenny/main apt-file 2.1.5 [19.2kB]
lenny/main menu 2.1.41 [453kB]
Fetched 626kB in 9s (67.3kB/s)
Selecting previously deselected package libconfig-file-perl.
(Reading database ... 21061 files and directories currently installed.)
Unpacking libconfig-file-perl (from .../libconfig-file-perl_1.42-1_all.deb) ...
Selecting previously deselected package libapt-pkg-perl.
Unpacking libapt-pkg-perl (from .../libapt-pkg-perl_0.1.22+b1_amd64.deb) ...
Selecting previously deselected package liblist-moreutils-perl.
Unpacking liblist-moreutils-perl (from .../liblist-moreutils-perl_0.22-1+b1_amd64.deb) ...
Selecting previously deselected package apt-file.
Unpacking apt-file (from .../apt-file_2.1.5_all.deb) ...
Selecting previously deselected package menu.
Unpacking menu (from .../archives/menu_2.1.41_amd64.deb) ...
Processing triggers for man-db ...
Setting up libconfig-file-perl (1.42-1) ...
Setting up libapt-pkg-perl (0.1.22+b1) ...
Setting up liblist-moreutils-perl (0.22-1+b1) ...
Setting up apt-file (2.1.5) ...
You need to run 'apt-file update' as root to update the cache.
Setting up menu (2.1.41) ...
Processing triggers for menu ...
这样就安装成功了,不过,在使用apt-file查看deb包内容前,我们首先得重新同步一下软件包内容。#apt-file update复制代码列出Debian下.deb文件或软件包的内容
命令格式如下:#apt-file list packageName复制代码下面我们以wget为例,来看看其中包含的文件列表:#apt-file list wget复制代码输出信息如下:
epiphany-extension-gwget: /usr/lib/epiphany-gecko/2.22/extensions/gwget.xml
epiphany-extension-gwget: /usr/lib/epiphany-gecko/2.22/extensions/libgwgetextension.a
epiphany-extension-gwget: /usr/lib/epiphany-gecko/2.22/extensions/libgwgetextension.la
epiphany-extension-gwget: /usr/lib/epiphany-gecko/2.22/extensions/libgwgetextension.so
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/AUTHORS
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/NEWS.gz
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/README
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/THANKS
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/TODO
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/changelog.Debian.gz
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/changelog.gz
epiphany-extension-gwget: /usr/share/doc/epiphany-extension-gwget/copyright
gwget: /usr/bin/gwget
gwget: /usr/share/applications/gwget.desktop
gwget: /usr/share/dbus-1/services/gwget.service
gwget: /usr/share/doc/gwget/AUTHORS
gwget: /usr/share/doc/gwget/NEWS.Debian.gz
wget-el: /usr/share/emacs/site-lisp/wget-el/wget-sysdep.el
wget-el: /usr/share/emacs/site-lisp/wget-el/wget.el
另一个例子,查看 foo.deb文件的内容:#dpkg-deb -c foo.deb
#dpkg-deb -c acct_6.4~pre1-6_amd64.deb复制代码输入信息如下:
drwxr-xr-x root/root& && && &0
drwxr-xr-x root/root& && && &0
14:26 ./etc/
drwxr-xr-x root/root& && && &0
14:26 ./etc/init.d/
-rwxr-xr-x root/root& && &-08 14:26 ./etc/init.d/acct
drwxr-xr-x root/root& && && &0
14:26 ./etc/default/
-rw-r--r-- root/root& && & 332
14:26 ./etc/default/acct
drwxr-xr-x root/root& && && &0
14:26 ./etc/cron.monthly/
-rwxr-xr-x root/root& && &-08 14:26 ./etc/cron.monthly/acct
drwxr-xr-x root/root& && && &0
14:26 ./etc/cron.daily/
-rwxr-xr-x root/root& && & 379
14:26 ./etc/cron.daily/acct
drwxr-xr-x root/root& && && &0
14:26 ./usr/
drwxr-xr-x root/root& && && &0
14:26 ./usr/sbin/
-rwxr-xr-x root/root& &&&-03-08 14:26 ./usr/sbin/dump-utmp
-rwxr-xr-x root/root& &&&-03-08 14:26 ./usr/sbin/dump-acct
-rwxr-xr-x root/root& &&&-03-08 14:26 ./usr/sbin/sa
-rwxr-xr-x root/root& && &-08 14:26 ./usr/sbin/accton
drwxr-xr-x root/root& && && &0
14:26 ./usr/bin/
-rwxr-xr-x root/root& &&&-03-08 14:26 ./usr/bin/ac
-rwxr-xr-x root/root& &&&-03-08 14:26 ./usr/bin/lastcomm
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/doc-base/
-rw-r--r-- root/root& && & 587
14:26 ./usr/share/doc-base/acct
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/doc/
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/doc/acct/
-rw-r--r-- root/root& && &-05 22:27 ./usr/share/doc/acct/README
-rw-r--r-- root/root& && &-08 14:26 ./usr/share/doc/acct/copyright
-rw-r--r-- root/root& &&&-03-08 14:26 ./usr/share/doc/acct/accounting.html
-rw-r--r-- root/root& && &-08 04:44 ./usr/share/doc/acct/NEWS.gz
-rw-r--r-- root/root& && &-08 14:26 ./usr/share/doc/acct/changelog.Debian.gz
-rw-r--r-- root/root& &&&-01-08 04:44 ./usr/share/doc/acct/changelog.gz
-rw-r--r-- root/root& && &-05 22:27 ./usr/share/doc/acct/TODO.gz
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/man/
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/man/man1/
-rw-r--r-- root/root& && &-08 14:26 ./usr/share/man/man1/lastcomm.1.gz
-rw-r--r-- root/root& && &-08 14:26 ./usr/share/man/man1/ac.1.gz
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/man/man8/
-rw-r--r-- root/root& && &-08 14:26 ./usr/share/man/man8/sa.8.gz
-rw-r--r-- root/root& && & 728
14:26 ./usr/share/man/man8/dump-utmp.8.gz
-rw-r--r-- root/root& && & 915
14:26 ./usr/share/man/man8/dump-acct.8.gz
-rw-r--r-- root/root& && & 553
14:26 ./usr/share/man/man8/accton.8.gz
drwxr-xr-x root/root& && && &0
14:26 ./usr/share/info/
-rw-r--r-- root/root& &&&-03-08 14:26 ./usr/share/.gz
如果软件包已经安装了,直接使用dpkg命令就能查看:#dpkg -L packageName复制代码转载请注明出处:
Powered by Discuz!
& Comsenz Inc.随笔 - 124&
文章 - 1&评论 - 25&trackbacks - 3
说明:由于图形化界面方法(如Add/Remove... 和Synaptic Package Manageer)比较简单,所以这里主要总结在终端通过命令行方式进行的软件包安装、卸载和删除的方法。
一、Ubuntu中软件安装方法
1、APT方式
(1)普通安装:apt-get install softname1 softname2 &;
(2)修复安装:apt-get -f install softname1 softname2... ;(-f Atemp to correct broken dependencies)
(3)重新安装:apt-get --reinstall install softname1 softname2...;
2、Dpkg方式
(1)普通安装:dpkg -i package_name.deb
3、源码安装(.tar、tar.gz、tar.bz2、tar.Z)
首先解压缩源码压缩包然后通过tar命令来完成
a.解xx.tar.gz:tar zxf xx.tar.gz&b.解xx.tar.Z:tar zxf xx.tar.Z&c.解xx.tgz:tar zxf xx.tgz&d.解xx.bz2:bunzip2 xx.bz2&e.解xx.tar:tar xf xx.tar
然后进入到解压出的目录中,建议先读一下README之类的说明文件,因为此时不同源代码包或者预编译包可能存在差异,然后建议使用ls -F --color或者ls -F命令(实际上我的只需要 l 命令即可)查看一下可执行文件,可执行文件会以*号的尾部标志。
一般依次执行./configure
&&&&&&&&&&&&&&&&&&&&& make
&&&&&&&&&&&&&&&&&&&& sudo make install
即可完成安装。
二、Ubuntu中软件包的卸载方法
1、APT方式
(1)移除式卸载:apt-get remove softname1 softname2 &;(移除软件包,当包尾部有+时,意为安装)
(2)清除式卸载 :apt-get --purge remove softname1 softname2...;(同时清除配置)
&&&&&&& 清除式卸载:apt-get purge sofname1 softname2...;(同上,也清除配置文件)
2、Dpkg方式
(1)移除式卸载:dpkg -r pkg1 pkg2 ...;
(2)清除式卸载:dpkg -P pkg1 pkg2...;
三、Ubuntu中软件包的查询方法
Dpkg 使用文本文件来作为数据库.通称在&/var/lib/dpkg&目录下. 通称在 status 文件中存储软件状态,和控制信息. 在 info/ 目录下备份控制文件, 并在其下的 .list 文件中记录安装文件清单, 其下的 .mdasums 保存文件的 MD5 编码.
体验使用数据库的时刻到了:
$ dpkg -l Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-===========-================-======================================== ii aalib1 1.4p5-28 ascii art library - transitional package ii adduser 3.85 Add and remove users and groups ii alien .63 install non-native packages with dpkg ... ...
每条记录对应一个软件包, 注意每条记录的第一, 二, 三个字符. 这就是软件包的状态标识, 后边依此是软件包名称, 版本号, 和简单描述.
第一字符为期望值,它包括:
u 状态未知,这意味着软件包未安装,并且用户也未发出安装请求.
i 用户请求安装软件包.
r 用户请求卸载软件包.
p 用户请求清除软件包.
h 用户请求保持软件包版本锁定.
第二列,是软件包的当前状态.此列包括软件包的六种状态.
n 软件包未安装.
i 软件包安装并完成配置.
c 软件包以前安装过,现在删除了,但是它的配置文件还留在系统中.
u 软件包被解包,但还未配置.
f 试图配置软件包,但是失败了.
h 软件包安装,但是但是没有成功.
第三列标识错误状态,可以总结为四种状态. 第一种状态标识没有问题,为空. 其它三种符号则标识相应问题.
h 软件包被强制保持,因为有其它软件包依赖需求,无法升级.
r 软件包被破坏,可能需要重新安装才能正常使用(包括删除).
x 软包件被破坏,并且被强制保持.
也可以以统配符模式进行模糊查询, 比如我要查找以nano字符开始的所有软件包:
$ dpkg -l nano* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii nano 1.3.10-2 free Pico clone with some new features pn nano-tiny &none& (no description available) un nanoblogger &none& (no description available)
以上状态说明: 系统中安装了&nano&版本为&1.3.10-2&;安装过&nano-tiny&, 后来又清除了; 从未安装过nanoblogger&.
如果觉得 dpkg 的参数过多, 不利于记忆的话, 完全可以使用 dpkg-query 进行 dpkg 数据库查询.
查询系统中属于nano的文件:
$ dpkg --listfiles nano
$ dpkg-query -L nano
查看软件nano的详细信息:
$ dpkg -s nano
$ dpkg-query -s nano
查看系统中软件包状态, 支持模糊查询:
$dpkg-query -l
查看某个文件的归属包:
$ dpkg-query -S nano
$ dpkg -S nano
三、其他应用总结
apt-cache search # ------(package 搜索包)apt-cache show #------(package 获取包的相关信息,如说明、大小、版本等)apt-get install # ------(package 安装包)apt-get install # -----(package --reinstall 重新安装包)apt-get -f install # -----(强制安装, "-f = --fix-missing"当是修复安装吧...)apt-get remove #-----(package 删除包)apt-get remove --purge # ------(package 删除包,包括删除配置文件等)apt-get autoremove --purge # ----(package 删除包及其依赖的软件包+配置文件等(只对6.10有效,强烈推荐))apt-get update #------更新源apt-get upgrade #------更新已安装的包apt-get dist-upgrade # ---------升级系统apt-get dselect-upgrade #------使用 dselect 升级apt-cache depends #-------(package 了解使用依赖)apt-cache rdepends # ------(package 了解某个具体的依赖,当是查看该包被哪些包依赖吧...)apt-get build-dep # ------(package 安装相关的编译环境)apt-get source #------(package 下载该包的源代码)apt-get clean && apt-get autoclean # --------清理下载文件的存档 && 只清理过时的包apt-get check #-------检查是否有损坏的依赖dpkg -S filename -----查找filename属于哪个软件包apt-file search filename -----查找filename属于哪个软件包apt-file list packagename -----列出软件包的内容apt-file update --更新apt-file的数据库dpkg --info "软件包名" --列出软件包解包后的包名称.dpkg -l --列出当前系统中所有的包.可以和参数less一起使用在分屏查看. (类似于rpm -qa)dpkg -l |grep -i "软件包名" --查看系统中与"软件包名"相关联的包.dpkg -s 查询已安装的包的详细信息.dpkg -L 查询系统中已安装的软件包所安装的位置. (类似于rpm -ql)dpkg -S 查询系统中某个文件属于哪个软件包. (类似于rpm -qf)dpkg -I 查询deb包的详细信息,在一个软件包下载到本地之后看看用不用安装(看一下呗).dpkg -i 手动安装软件包(这个命令并不能解决软件包之前的依赖性问题),如果在安装某一个软件包的时候遇到了软件依赖的问题,可以用apt-get -f install在解决信赖性这个问题.dpkg -r 卸载软件包.不是完全的卸载,它的配置文件还存在.dpkg -P 全部卸载(但是还是不能解决软件包的依赖性的问题)dpkg -reconfigure 重新配置apt-get install下载软件包,以及所有依赖的包,同时进行包的安装或升级。如果某个包被设置了 hold (停止标志,就会被搁在一边(即不会被升级)。更多 hold 细节请看下面。apt-get remove [--purge]移除 以及任何依赖这个包的其它包。--purge 指明这个包应该被完全清除 (purged) ,更多信息请看 dpkg -P。apt-get update升级来自 Debian 镜像的包列表,如果你想安装当天的任何软件,至少每天运行一次,而且每次修改了/etc/apt/sources.list 後,必须执行。apt-get upgrade [-u]升 级所有已经安装的包为最新可用版本。不会安装新的或移除老的包。如果一个包改变了依赖关系而需要安装一个新的包,那么它将不会被升级,而是标志为 hold。apt-get update 不会升级被标志为 hold 的包 (这个也就是 hold 的意思)。请看下文如何手动设置包为 hold。我建议同时使用 '-u' 选项,因为这样你就能看到哪些包将会被升级。apt-get dist-upgrade [-u]和 apt-get upgrade 类似,除了 dist-upgrade 会安装和移除包来满足依赖关系。因此具有一定的危险性。apt-cache search在软件包名称和描述中,搜索包含xxx的软件包。apt-cache show显示某个软件包的完整的描述。apt-cache showpkg显示软件包更多细节,以及和其它包的关系。dselectconsole-aptaptitudegnome-aptAPT 的几个图形前端(其中一些在使用前得先安装)。这里 dselect 无疑是最强大的,也是最古老,最难驾驭。普通 Dpkg 用法dpkg -i安装一个 Debian 包文件,如你手动下载的文件。dpkg -c列出 的内容。dpkg -I从 中提取包信息。dpkg -r移除一个已安装的包。dpkg -P完全清除一个已安装的包。和 remove 不同的是,remove 只是删掉数据和可执行文件,purge 另外还删除所有的配制文件。dpkg -L列出 安装的所有文件清单。同时请看 dpkg -c 来检查一个 .deb 文件的内容。dpkg -s显示已安装包的信息。同时请看 apt-cache 显示 Debian 存档中的包信息,以及 dpkg -I 来显示从一个 .deb 文件中提取的包信息。dpkg-reconfigure重 新配制一个已经安装的包,如果它使用的是 debconf (debconf 为包安装提供了一个统一的配制界面)。你能够重新配制 debconf 它本身,如你想改变它的前端或提问的优先权。例如,重新配制 debconf,使用一个 dialog 前端,简单运行:dpkg-reconfigure --frontend=dialog debconf (如果你安装时选错了,这里可以改回来哟:)echo " hold" | dpkg --set-selections设置 的状态为 hlod (命令行方式)dpkg --get-selections ""取的 的当前状态 (命令行方式)支持通配符,如:Debian:~# dpkg --get-selections *wine*libwine holdlibwine-alsa holdlibwine-arts holdlibwine-dev holdlibwine-nas holdlibwine-print holdlibwine-twain holdwine holdwine+ holdwine-doc holdwine-utils hold例如:大家现在用的都是 gaim-0.58 + QQ-plugin,为了防止 gaim 被升级,我们可以采用如下方法:方法一:Debian:~# echo "gaim hold" | dpkg --set-selections然後用下面命令检查一下:Debian:~# dpkg --get-selections "gaim"gaim hold现在的状态标志是 hold,就不能被升级了。如果想恢复怎么办呢?Debian:~# echo "gaim install" | dpkg --set-selectionsDebian:~# dpkg --get-selections "gaim"gaim install这时状态标志又被重置为 install,可以继续升级了。同志们会问,哪个这些状态标志都写在哪个文件中呢?在 /var/lib/dpkg/status 里,你也可以通过修改这个文件实现 hold。有时你会发现有的软件状态标志是 purge,不要奇怪。如:事先已经安装了 amsn,然後把它卸了。apt-get remove --purge amsn那么状态标志就从 install 变成 purge。方法二:在/etc/apt 下手动建一个 preferences 文件内容:Package: gaimPin: version 0.58*保存dpkg -S在包数据库中查找 ,并告诉你哪个包包含了这个文件。(注:查找的是事先已经安装的包)--------------------------------------------Debian的软件包管理工具命令不完全列表--------------------------------------------Debian系统中所有的包信息都在/var/lib/dpkg下.其中/var/lib/dpkg/info目录中保存了各个软件包的信息及管理文件.每个文件的作用如下:以 ".conffiles"&&&& 结尾的文件记录软件包的配置列表.以 ".list"&&&&&&&&& 结尾的文件记录了软件包的文件列表,用户可在文件当中找到软件包文件的具体安装位置.以 ".md5sums"&&&&&& 结尾的文件记录了md5信息,用来进行包的验证的.以 ".config"&&&&&&& 结尾的文件是软件包的安装配置角本.以 ".postinst"&&&&& 角本是完成Debian包解开之后的配置工作,通常用来执行所安装软件包相关的命令和服务的重新启动.以 ".preinst"&&&&&& 角本在Debain解包之前运行,主要作用是是停止作用于即将升级的软件包服务直到软件包安装或和升级完成.以 ".prerm"&&&&&&&& 脚本负责停止与软件包关联的daemon服务,在删除软件包关联文件之前执行.以 ".postrm"&&&&&&& 脚本负责修改软件包链接或文件关联,或删除由它创建的文件./var/lib/dpkg/available是软件包的描述信息.包括当前系统中所有使用的Debian安装源中所有的软件包,还包括当前系统中已经安装和未安装的软件包.&&&&&&&&&&1.dpkg包管理工具
dpkg -r 卸载软件包.不是完全的卸载,它的配置文件还存在.dpkg --info "软件包名" --列出软件包解包后的包名称.dpkg -l&&&& --列出当前系统中所有的包.可以和参数less一起使用在分屏查看.dpkg -l |grep -i "软件包名" --查看系统中与"软件包名"相关联的包.dpkg -s&& 查询已安装的包的详细信息. dpkg -L&& 查询系统中已安装的软件包所安装的位置.dpkg -S&& 查询系统中某个文件属于哪个软件包.dpkg -I&& 查询deb包的详细信息,在一个软件包下载到本地之后看看用不用安装(看一下呗).dpkg -i 手动安装软件包(这个命令并不能解决软件包之前的依赖性问题),如果在安装某一个软件包的时候遇到了软件依赖的问题,可以用apt-get -f install在解决信赖性这个问题.dpkg -reconfigure 重新配置&dpkg -P 全部卸载(但是还是不能解决软件包的依赖性的问题)
2. apt高级包管理工具&& (1)GTK图形的"synaptic",这是APT的前端工具.&& (2)"aptitude",这也是APT的前端工具.&& 用APT管理工具进行包的管理,可以有以下几种方法做源:&& (1)拿安装盘做源,方法如下:&&&&&&& apt-cdrom ident&&&&&&& 扫描光盘的信息&&&&&&& apt-cdrom add&&&&&&&&& 添加光盘源&& (2)这也是最常用的方法就是把源添加到/etc/apt/source.list中,之后更新列apt-get update
APT管理工具常用命令apt-cache 加上不同的子命令和参数的使用可以实现查找,显示软件,包信息及包信赖关系等功能.apt-cache stats 显示当前系统所有使用的Debain数据源的统计信息.apt-cache search +"包名",可以查找相关的软件包.apt-cache show&& +"包名",可以显示指定软件包的详细信息.apt-cache depends +"包名",可以查找软件包的依赖关系.apt-get upgrade&& 更新系统中所有的包到最新版apt-get install&& 安装软件包apt-get --reindtall install 重新安装软件包apt-get remove 卸载软件包apt-get --purge remove 完全卸载软件包apt-get clean 清除无用的软件包在用命令apt-get install之前,是先将软件包下载到/var/cache/apt/archives中,之后再进行安装的.所以我们可以用apt-get clean清除/var/cache/apt/archives目录中的软件包.
源码包安装&& apt-cache showsrc 查找看源码包的文件信息(在下载之前)&& apt-get source 下载源码包.&& apt-get build-dep +"包名" 构建源码包的编译环境.
清除处于rc状态的软件包
dpkg -l |grep ^rc|awk '{print $2}' |tr ["\n"] [" "] | sudo xargs dpkg -P -
阅读(...) 评论()关于Linux操作系统,发行版、内核的问题
& 分页: 1 / 1
6 INSTALL SOME SOFT6.1. Chinese input,Use fcitx in English version OS:
Install fcitx
#apt-get install fcitx
或者从源码安装:
# apt-get install libxpm-dev
# tar jxf fcitx-3.4.2.tar.ba2 -C /usr/local/
# cd /usr/local/fcitx-3.4.2
# configure && make && make install
#vim /etc/X11/Xsession.d/95input
Input under content:
export LANG=&en_US.UTF-8&
export LC_CTYPE=&zh_CN.UTF-8&
export XMODIFIERS=&@im=fcitx&
保存退出vim。
配置文件~/.fcitx/config我使用了fc8 上fcitx-3.5-0.BlackFri.fc8.i386.rpm的config 文件.6.2. Install SCIM input:
#apt-get install scim scim-pinyin scim-tables-zh im-switch
$im-switch -z en_US -s scim #英文系统下使用SCIM:
#gedit /etc/X11/xinit/xinput.d/scim
#GTK_IM_MODULE=xim
#QT_IM_MODULE=xim
GTK_IM_MODULE=scim
QT_IM_MODULE=scim6.3. Install thunderbird & firefox3 without apt-get安装所需的库
# apt-get install libstdc++56.3.1. Download them from 6.3.2. Extract soft,:
# tar zxf thunderbird*.tar.gz -C /usr/local/
# tar zxf firefox*.tar.gz -C /usr//local/6.3.3. Create dynamic link:
Thunderbird:
# ln -s /usr/local/thunderbird /usr/lib/thunderbird
# ln -s /usr/local/thunderbird/thunderbird /usr/bin/thunderbird
# ln -s /usr/local/thunderbird/icons/mozicon50.xpm /usr/share/icons/thunderbird.xpm
# ln -s /usr/local/firefox/icons/mozicon128.png /usr/share/icons/firefox.png
# ln -s /usr/local/firefox/firefox /usr/bin/firefox
# ln -s /usr/local/firefox /usr/lib/firefox6.3.4. Create thunder and firefox icon in the menu:
$sudo gedit /usr/share/applications/thunderbird.desktopAdd under words:[Desktop Entry]Encoding=UTF-8Name=Thunderbird Mail/NewsComment=Read/Write Mail/News with ThunderbirdGenericName=Mail ClientExec=thunderbird %uTerminal=falseX-MultipleArgs=falseType=ApplicationIcon=thunderbird.xpmCategories=ANMimeType=text/text/application/xhtml+application/application/vnd.mozilla.xul+application/rss+application/rdf+image/image/image/pngStartupWMClass=Thunderbird-binStartupNotify=true
Save and exit
$sudo gedit /usr/share/applications/firefox.desktopAdd under words:[Desktop Entry]Encoding=UTF-8Name=Firefox3 Web BrowserComment=Browse the World Wide WebGenericName=Web BrowserExec=firefox %uTerminal=falseX-MultipleArgs=falseType=ApplicationIcon=firefox.pngCategories=NWebBrowserMimeType=text/text/application/xhtml+application/application/vnd.mozilla.xul+application/rss+application/rdf+image/image/image/pngStartupWMClass=Firefox-binStartupNotify=true
安装firefox插件:
downthemall
chm Reader
Flashblock
支持mht,下载安装unmht:
安装FlashPlayer
在iceweasel提示安装时选择安装,如果安装失败:
下载install_flash_player_9_linux.tar.gz并解压,进入解压目录,执行
安装:sudo ./flashplayer-installer
路径: /usr/lib/firefox /usr/lib/opera
若flashplayer菜单有乱码问题的话,执行:
$sudo mv /etc/fonts/conf.d/49-sansserif.conf /etc/fonts/conf.d/49-sansserif.conf.bak
安装ttf-freefont字体可解决swf文件中文乱码
Save and exit,ok,cheers!-----备用浏览器:
Opera字体优化~/.opera/styles/user/user.css:html,body,*{
font-family:&微软雅黑& !}-----6.4. Install Eva QQ From Source6.4.1.
首先安装需要的依赖库:
# apt-get install build-essential
# apt-get install g++ gcc make automake perl
# apt-get install kdelibs4-dev libqt3-mt-dev kdelibs4c2a
把源码解压,进入源码的目录,配置configure:
# ./configure && make && make install
若是安装完成以后启动出现这样的错误:
Sorry,image resource cannot be loaded properly,check image directory please.
则有可能是直接./configure的路径出错,应该如下:
# ./configure --prefix=`kde-config --prefix`
网上是如上语句安装,但是在我的机器上(fedora8和debian lenny)通不过,
我把安装语句拆分为如下:
debian-525 eva- # kde-config --prefix
debian-525 eva- # ./configure --prefix='/usr/'
# make && make install
gcc版本升级到4.3后,eva-编译通不过了,需要去
下载这个补丁,下载后把补丁
# unzip eva_patch.zip -d /usr/local/eva-/
# cd /usr/local/eva-/
# patch -p1 & eva_patch
# ./configure --prefix=`kde-config --prefix` && make && make install6.4.3
gnome用户会发现在Internet那里没有图标,这样就好了:
# ln -s /usr/share/apps/eva/image/theme/eva.png /usr/share/icons/eva
Eva 出错文档,见附录1.
Eva的字体修改:修改文件~/.kde/share/config/kdeglobals:[General]XftHintStyle=hintmediumXftSubPixel=fixed=微软雅黑,9,-1,5,50,0,0,0,0,0font=微软雅黑,9,-1,5,50,0,0,0,0,0menuFont=微软雅黑,9,-1,5,50,0,0,0,0,0taskbarFont=微软雅黑,9,5,50,0,0,0,0,0toolBarFont=微软雅黑,9,-1,5,50,0,0,0,0,06.4.6 其他网络通讯IM
# apt-get install pidgin amsn安装飞信:详细请看 我用的是旧版,解压后就是libfetion.so,把它mv到/usr/lib/purple-2/libfetion.so服务器那里填写: 221.130.44.193其他信息自己填,就可以用了:)6.5. Install Stardict6.5.1.
Solution dependency:
# apt-get install libenchant-dev libgucharmap-dev gucharmap libespeak-dev6.5.2.
Download stardict-XXX-.deb from
# dpkg -i stardict_3.0.1-1_i386.deb6.5.3.
安装字典:tar -xjvf a.tar.bz2
# mv a /usr/share/stardict/dic
字典路径:/usr/share/stardict/dic
摘自官方: WyabdcRealPeopleTTS 软件包是星际译王词语的发音文件,是扩展名为.wav的文件. Linux系统下,通过(tar -xjvf) 解压文件 tarball 到 &/usr/share/&.or
# apt-get install stardict
6.6. Install Mplay from Source解码器和原文件还有皮肤到这里下载:
See Mplayer readme files.
1. copy decodes to /usr/local/lib/win32(decodes文件是你自己下载的解码器)
2. ./configure --enable-gui
3. make && make install
4. 这里假设你已经安装了雅黑字体,要是没有安装,请选择其他字体链接:
# ln -s /usr/share/fonts/msyh/msyh.ttf /usr/local/share/mplayer/subfont.ttf
5. 设定皮肤
# cd /usr/local/share/mplayer/skins/
# ln -s clearplayer/ default6.7. Install Totem player
# apt-get install totem-xine
totem-GStreamer和我的声卡驱动有冲突,播放电影时没有声音,
# alsa force-reload
才能播放,具体原因我也没有找出来。
安装解码器:
# apt-get install totem-xine w32codecs
若不能播放rm和rmvb:
# rm -f /usr/lib/win32/drvc.so /usr/lib/codecs/drvc.so6.8. Install XXX player music(MP3):Now I'm using rhythmbox in gnome
# apt-get install rhythmbox6.9. Install Vimand config(无垠的blog)源码安装vim:no terminal library foundchecking for tgetent()... configure: error: NOT FOUND!You need to instal for example ncurses.Or specify the name of the library with --with-tlib.
# apt-get install libncurses5-dev libpanelappletmm-2.6-dev ncurses* libgtk2.0-dev(这里缺什么我不是太清楚,安装了那么多就好了)
# ./configure --enable-cscope --enable-fontset --with-gnome && make && make install配置:
'apt-get build-dep vim' to get whatever packages are required to compilevim. 6.10. Install VMwareworkstation
原来一直装不上,老出错,自己编译好内核以后执行vmware-install.pl就好了.6.11. Install OpenOffice
# apt-get install openoffice.org-writer openoffice.org-calc openoffice.org-math openoffice.org-impress openoffice.org-gtk openoffice.org-help-en-us
# apt-get install openoffice.org-l10n-zh-cn openoffice.org-help-zh-cn #中文界面和中文帮助6.12. 压缩与解压缩
需要添加这个源添加软件源到最后 /etc/apt/source.lst
lenny main contrib non-free
lenny main contrib non-free
lenny main
lenny main
$ apt-get update
注意:debian-multimedia.org的源需要安装KEY,在http://www.debian-multimedia.org/下载后安装后才可以更新软件列表。
# apt-get install p7zip-rar rar unrar
# apt-get install file-roller p7zip-full cabextract
6.13. 图像处理
# apt-get install gimp6.14. 双击安装deb文件
# apt-get install gdeb
6.15. PDF阅读 CHM阅读
# apt-get install evince
Evince完美中文支持(我发现安装这个后中文字体会变形,在考虑是不是换Adobe Read)
# apt-get install xpdf-chinese-simplified xpdf-chinese-traditional
# apt-get install gnochm6.16. Install tomboy便笺记事本,我觉得蛮方便的
apt-get install tomboy6.17 compile wine-1.0
# apt-get install flex bison如果缺少警告的包:6.18 Install man page
# apt-get install manpages-posix manpages-posix-dev---------------------------------------设置问题:1. Gnome 桌面上不显示已挂载的硬盘图标
当你通过 Nautilus 挂接了一个硬盘分区或USB盘时,桌面上会显示相应的图标。如果你不想让这些图标在桌面上显示,请看本 How-to。
当你的 fstab 里的某一行中使用了 'user' 选项时,你就可以在 Nautilus '计算机' 中看到对应的硬盘,直接双击会自动挂接相应硬盘,并且会在桌面上显示相应的链接图标。
这个键的其他几个值就是设置“我的电脑”等其他几个图标的东西。
要禁止这些图标在桌面上的显示,请按如下方法操作:
(1). 应用程序-&系统工具-&配置编辑器(gconf-editor)
(2). 找到 gconf-editor--&apps--&nautilus--&desktop--&volumes_visible 设置为 FALSE (单击即可)2. adjust system timeif this command can not be run: #hwclock --showit display &select() to /dev/rtc to wait for clock tick timed out&,and this follow command can be run: #hwclock --directisa --show(hwckock is mean hardware clock),then you can modify /etc/default/rcS this file add one line in it:HWCLOCKPARS=&--directisa&reboot your system ,ok!3. 让gnome支持多编码修改打开gedit的默认编码为GB2312方法: gconf-editor--&app--&gedit2--&preferences--&encodings--&auto_detected 记入编码GB2312,GBK,GB18030gconf-editor--&app--&gedit2--&preferences--&encodings--&show_in_menu,这里也可以改改4. 快捷键启动程序先设置命令几对应的启动程序,再设置启动这个程序的快捷键。例如,我这里设置按快捷键&&control&+&alt&+t&启动终端:设置启动的程序:gconf-editor--&app--&metacity--&keybinding_commands--&command_1: gnome-terminal设置对应的快捷键:gconf-editor--&app--&metacity--&global_keybindings--&runcommand_1: &control&&alt&t其他的雷同:)---------------------------------附录1 linux下安装eva qq configure 错误详解 ./configure错误全搞掂 Tuesday, April 17,
PM错误: C compiler cannot create executables原因:解决:sudo apt-get install gcc libc6-dev错误:checking for C compiler default output... configure: error: C compiler cannot create executables原因:解决:sudo apt-get install libc6-dev错误:configure: error: C++ preprocessor &/lib/cpp& fails sanity check原因:gcc的组件没装全解决:apt-get install build-essential错误: Can't find X includes. Please check your installation and add the correct paths!原因:没有X的包含文件解决:安装xlibs-dev即可错误: Qt (&= Qt 3.0) (headers and libraries) not found. Please check your installation!原因:查找提供qt的lib&&headers的软件包,并安装之解决:apt-get install libqt3-headers libqt3-mt-dev错误:in the prefix, you've chosen, are no KDE headers installed. This will fail.So, check this please and use another prefix!原因:install a KDE application in a Gnome environment。解决:which basically means its going to want to install a lot of KDE specific packages to work. This 'configure:error'is due to it expecting you to be running KDE and again refers to some 'headers'.sudo apt-get updatesudo apt-get install kdelibs4-dev kdelibs4c2a错误:./admin/cvs.sh: 585: autoconf: not found原因:解决:apt-get install autoconf错误: *** GTK &= 2.4.0 not installed! ***原因:没装GTK解决:apt-get build-dep gedit错误:heching for gtk-config... nochecking for GTK - version = 1.2.0... no*** The gtk-config script installed by GTK could not be found*** If GTK was installed in PREFIX, make sure PREFIX/bin is in*** your path, or set the GTK_CONFIG enviroment variable to the*** full path to gtk-config.configure: error: Cannot find GTK: Is gtk-config in path?原因:解决:sudo apt-get install libgtk1.2-dev问题:eclipse中encoding不支持中文解决:编辑/var/lib/locales/supported.d/local,加一行zh_CN.GBK GBK,执行sudo locale-gen错误:gnome.h: No such file or directory错误: No package 'libpanelapplet-2.0' found原因:解决:sudo apt-get install gnome-panel问题:eva不弹出输入法解决:sudo apt-get install scim-qtimm问题:No package 'gtk+-2.0' foundNo package 'gtksourceview-1.0' foundNo package 'libgnomeui-2.0' foundNo package 'libglade-2.0' foundNo package 'libgnomeprintui-2.2' found解决:sudo apt-get install libgtk2.0-dev libgtksourceview-dev libgnomeui-dev libglade2-dev libgnomeprint2.2-dev问题:No package 'libpanelapplet-2.0' found解决:sudo apt-get install libpanelappletmm-2.6-dev
4bsfreedom (a)
帖子: 679注册:
& 分页: 1 / 1
选择一个版面
------------------
Linux兼容内核专区
& &兼容内核项目
& &Bug反馈
& &兼容内核开发
& &情景分析讨论版
& &Longene测试
LINUX相关讨论区
& &Linux操作系统
& && &linux内核
& &WINE讨论区
Linux内核分析
& &Linux内核分析
Language Specific Discussion
& &English
Windows研讨区
& &Windows NT
自由交流区
& &聊天灌水区
& &论坛事务管理
正在浏览此版面的用户:没有注册用户 和 0 位游客

我要回帖

更多关于 debian7.8安装 的文章

 

随机推荐