git 在Fedora上的安裝

由於最近在porting i2c的driver需要在linux kernel上去debug. 突然覺得把code用svn來記錄有點厭煩, 聽過linus在google上的言講後, 一直很想要換成git.
今天就來安裝一下, 在command line下安裝:
1. yum git
2. 在我的code的目錄下
git add .
git commit -a -m 'Git for code version control, help it can work'

在linux底下check其版本

如果是要確認Linux kernel的版本
In a terminal type "uname -a"
[root@localhost kernel]# uname -a
Linux localhost.localdomain 2.6.23.1-42.fc8 #1 SMP Tue Oct 30 13:55:12 EDT 2007 i686 i686 i386 GNU/Linux

如果是要確認fedora的版本
[root@localhost kernel]# cat /etc/issue
Fedora release 8 (Werewolf)
Kernel \r on an \m

在linux底下尋找source insight軟體

由於厭倦老是要在linux與windows之前切換. 當然是因為source insight實在太方便了, 對於看code目前還找不到取代的工具.
經過一番搜尋, 在網路上有KScope這個工具.
===官網如此描述=========
KScope is a QT4 front-end to Cscope. It provides a source-editing
environment for large C projects, such as the Linux kernel.

KScope is by no means intended to be a replacement to any of the leading
Linux/KDE IDEs, such as KDevelop. First of all, it is not an Integrated
Development Environment: it does not provide the usual write/compile/debug
cycle supported by most IDE's. Instead, KScope is focused on source
editing and analysis.
===官網如此描述=========
因此嘗試在Fedora 8底下去安裝. 一開始還找不到這個package
[root@localhost kernel]# yum install kscope
fedora 100% |=========================| 2.1 kB 00:00
updates 100% |=========================| 2.6 kB 00:00
Setting up Install Process
Parsing package install arguments
No package kscope available.
Nothing to do

在update一下yum的package list

[root@localhost kernel]# yum check-update

fedora-release.noarch 8-6.transition updates
[root@localhost kernel]# yum update
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package fedora-release.noarch 0:8-6.transition set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
fedora-release noarch 8-6.transition updates 31 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 1 Package(s)
Remove 0 Package(s)

Total download size: 31 k
Is this ok [y/N]: y
Downloading Packages:
(1/1): fedora-release-8-6 100% |=========================| 31 kB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : fedora-release ######################### [1/2]
Cleanup : fedora-release ######################### [2/2]

Updated: fedora-release.noarch 0:8-6.transition
Complete!

update完最新的yum, 就可以正常的安裝kscope.


[root@localhost kernel]# yum install kscope