SEO対策ならSEO knowledge

TOPLinux>Linuxサーバー

バージョン表示コマンドcheckinstallをインストールする方法

例えばrubyには通常-vオプションはないが、checkinstallを使って設定することで

# ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]

というコマンドでバージョンが簡単に分かるようになる。

インストール方法

# wget http://asic-linux.com.mx/%7Eizto/checkinstall/files/source/checkinstall-1.6.1.tgz
# tar zxvf checkinstall-1.6.1.tgz 
# cd checkinstall-1.6.1
# make
# make install



使い方
インストールするパッケージを解凍したディレクトリで以下のコマンドを打つ

# cd ruby-1.8.6
# checkinstall --fstrans=no


checkinstall 1.6.1, Copyright 2002 Felipe Eduardo Sanchez Diaz Duran
           This software is released under the GNU GPL.


The package documentation directory ./doc-pak does not exist.
Should I create a default set of package docs?  [y]: y

パッケージのドキュメンテーションを準備..OK

Please choose the packaging method you want to use.
Slackwareなら[S], RPMなら[R], Debianなら[D]を入力R


このパッケージの説明を書いてください
End your description with an empty line or EOF.
>> ruby new version
>> EOF
>>

**************************************
**** RPM package creation selected ***
**************************************

This package will be built according to these values:

1 -  Summary: [ ruby new version ]
2 -  Name:    [ ruby ]
3 -  Version: [ 1.8.6 ]
4 -  Release: [ 1 ]
5 -  License: [GPL ]
6 -  Group:[ Applications/System ]
7 -  Architecture: [ i386 ]
8 -  Source location: [ ruby-1.8.6 ]
9 -  Alternate source location: [  ]
10 - Requires: [  ]
11 - Provides: [ ruby ]

変更するものの番号を入力してください。Enterで続行します:

Installing with make install...

========================= Installation results ===========================
./miniruby  ./instruby.rb --dest-dir="" --extout=".ext" --make="make" --mflags="" --make-flags="" --installed-list .installed.list --mantype="doc"
installing binary commands
installing command scripts
installing library scripts
installing headers
installing manpages
installing extension objects
installing extension scripts

======================== Installation successful ==========================

Copying documentation directory...
./
./README.ja
./NEWS
./ChangeLog
./COPYING
./GPL
./README.EXT
./doc/
./doc/irb/
./doc/irb/irb.rd.ja
./doc/irb/irb.rd
./doc/irb/irb-tools.rd.ja
./doc/forwardable.rd.ja
./doc/forwardable.rd
./doc/NEWS-1.8.0
./doc/shell.rd
./doc/ChangeLog-1.8.0
./doc/shell.rd.ja
./COPYING.ja
./README
./README.EXT.ja

Some of the files created by the installation are inside the build
directory: /root/ruby-1.8.6

You probably don't want them to be included in the package,
especially if they are inside your home directory.
Do you want me to list them?  [n]: n
それらをパッケージから除外しますか?(yesと答えることをおすすめします) [y]: y

tempディレクトリにファイルをコピー..OK

ELFバイナリとライブラリを除去..OK

manページを圧縮..OK

ファイルリストを作成..OK

RPMパッケージを作成..OK

NOTE: The package will not be installed

tempファイルを削除..OK

doc-pakディレクトリを削除..OK

バックアップパッケージを書き込み..OK

temp dirを削除..OK


**********************************************************************

 Done. The new package has been saved to

 /usr/src/redhat/RPMS/i386/ruby-1.8.6-1.i386.rpm
 You can install it in your system anytime using:

      rpm -i ruby-1.8.6-1.i386.rpm

**********************************************************************

 このエントリをはてなブックマークに登録 このエントリをlivedoorクリップに登録 Yahoo!ブックマークに登録 このエントリを del.icio.us に登録 Google Bookmarks に追加
[ 新規 | 編集 | 削除 | 凍結 ]    [ 新着 | 履歴 | ヘルプ ]

この記事に関連する求人

携帯サイト

携帯サイトはこちら

QRコード

http://it.kndb.jp/m

記事を書く

関連エントリ

関連ブックマーク

ページ上部へ