Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2484734
  • 博文数量: 609
  • 博客积分: 10061
  • 博客等级: 上将
  • 技术积分: 5920
  • 用 户 组: 普通用户
  • 注册时间: 2008-06-25 08:30
文章分类

全部博文(609)

文章存档

2010年(13)

2009年(39)

2008年(558)

我的朋友

分类: LINUX

2008-09-12 22:17:55

This Checkinstall is for the case you'd like to install a software from RPM package that is provided only with tar ball.

 
[1]     Install Checkinstall

[root@ns ~]# yum  -y install checkinstall
 
Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
 * rpmforge: ftp-stud.fht-esslingen.de
 * base: centos.candishosting.com.cn
 * updates: centos.candishosting.com.cn
 * addons: centos.candishosting.com.cn
 * extras: centos.candishosting.com.cn
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package checkinstall.i386 0:1.6.0-3.el5.rf set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 checkinstall            i386       1.6.0-3.el5.rf   rpmforge           82 k

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

Total download size: 82 k
Downloading Packages:
(1/1): checkinstall-1.6.0 100% |=========================|  82 kB    00:07    
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing: checkinstall                 ######################### [1/1]

Installed: checkinstall.i386 0:1.6.0-3.el5.rf
Complete!


[2]     Checkinstall How to
[root@ns ~]# wget

[root@ns ~]# tar zxvf squidclamav-3.1.tar.gz

[root@ns ~]# cd squidclamav-3.1

[root@ns squidclamav-3.1]# ./configure

[root@ns squidclamav-3.1]# make

[root@ns squidclamav-3.1]# checkinstall
// create RPM

 
checkinstall 1.6.0, 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  // Yes

 
Preparing package documentation...OK
 
Please choose the packaging method you want to use.
Slackware [S], RPM [R] or Debian [D]? R // RPM

 
Please write a description for the package.
End your description with an empty line or EOF.
 
>>
**************************************
**** RPM package creation selected ***
**************************************
 
This package will be built according to these values:
 
1 - Summary: [ Package created with checkinstall 1.6.0 ]
2 - Name: [ squidclamav ]
3 - Version: [ 3.1 ]
4 - Release: [ 1 ]
5 - License: [ GPL ]
6 - Group: [ Applications/System ]
7 - Architecture: [ i386 ]
8 - Source location: [ squidclamav-3.1 ]
9 - Alternate source location: [ ]
10 - Requires: [ ]
11 - Provides: [ squidclamav ]
 
Enter a number to change any of them or press ENTER to continue:  // Enter key

 
Installing with make install...
 
========================= Installation results ===========================
make[1]: Entering directory `/root/squidclamav-3.1'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
/usr/bin/install -c 'squidclamav' '/usr/local/bin/squidclamav'
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/root/squidclamav-3.1'
 
======================== Installation successful ==========================
 
Copying documentation directory...
 
./
./ChangeLog
./AUTHORS
./README
./NEWS
./INSTALL
./COPYING
 
Copying files to the temporary directory...OK
 
Striping ELF binaries and libraries...OK
 
Compressing man pages...OK
 
Building file list...OK
 
Building RPM package...OK
 
NOTE: The package will not be installed
 
Erasing temporary files...OK
 
Deleting doc-pak directory...OK
 
Writing backup package...OK
 
Deleting temp dir...OK
 
**********************************************************************
 
Done. The new package has been saved to
 
/usr/src/redhat/RPMS/i386/squidclamav-3.1-1.i386.rpm
You can install it in your system anytime using:
 
    rpm -i squidclamav-3.1-1.i386.rpm
 
**********************************************************************
 
[root@ns ~]# cd /usr/src/redhat/RPMS/i386

[root@hn i386]# rpm -Uvh squidclamav-3.1-1.i386.rpm

Preparing...                ########################################### [100%]
   1:squidclamav            ########################################### [100%]

[root@hn i386]# rpm -q squidclamav

squidclamav-3.1-1

[root@hn i386]# 
阅读(1621) | 评论(0) | 转发(0) |
0

上一篇:centos下的tomcat6安装

下一篇:SMP简介

给主人留下些什么吧!~~