This file is README.txt ######################################### ## ## ½ºÅ©¸³Æ®¸í : rpmlist(RPM (Un)Installed list ã±â) ## ## ÀÛ¼ºÀÚ : ±èÄ¥ºÀ ## ¼Ò ½º : http://www.linuxchannel.net/devel/ ## ÀÛ¼ºÀÏ : 1Â÷ 2001.05.29 ## 2Â÷ 2002.8.11 ## ## ¶óÀ̼¾½º : GNU GPL (see "COPYING" file) ## ## ############################################### ############################################### ## ## ## WARNING !!! ## ## »ç¿ëÀÚÀÇ »ç¿ë»ó ºÎÁÖÀÇ·Î ÀÎÇÑ ÇÇÇØ´Â ## ## ¾î¶°ÇÑ °æ¿ì¶ó°í º»Àο¡°Ô ±× Ã¥ÀÓÀÌ ¾øÀ½À» ## ## ¹Ì¸® °øÁöÇÕ´Ï´Ù. ## ## ## ############################################### [°£·«ÇÑ ¼³¸í] ÀÌ ½ºÅ©¸³Æ®´Â RedHat °è¿­ Install CDÀÇ RPMS µð·ºÅ丮¸¦ ±âÁØÀ¸·Î, °¢°¢ÀÇ RPM ÆÄÀÏ¿¡ ´ëÇؼ­ ¼³Ä¡µÉ °æ·Î¸¦ ÆÄÀÏ·Î ¸¸µé°í, ¸¸µç ÆÄÀÏÀ» ´ë»óÀ¸·Î °Ë»ö, ±×¸®°í MySQL DB¿¡ Áý¾î ³ÖÀ» ¼ö ÀÖµµ·Ï ¸¸µç ½ºÅ©¸³Æ® ÀÔ´Ï´Ù. MySQL DB¿¡ ³ÖÀº °Ô½ÃÆÇ : http://www.linuxchannel.net/board/?table=rpmlist 0. ¼³Ä¡(?) http://www.linuxchannel.net/devel/ ½ÎÀÌÆ®¸¦ Âü°íÇؼ­ "rpmf-sh.txt" ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÔ. ´Ù¿î·ÎµåÇÑ ÆÄÀÏÀ» "rpmf"À¸·Î ÆÄÀϸíÀ» ¹Ù²Ù°í Æ۹̼ÇÀº ÃÖ¼ÒÇÑ »ç¿ëÀÚ¿¡°Ô ½ÇÇà±ÇÇÑÀÌ µÇµµ·Ï ÇÏ°í Àû´çÇÑ $PATH¿¡ º¹»çÇϰųª ¿Å°Ü³õÀ½. ex) # cp rpmf-sh.txt rpmf # chmod 700 rpmf # mv rpmf /usr/local/bin/ # # rpmf Usage : /usr/local/bin/rpmf --makelist "/mnt/cdrom/RedHat/RPMS" /usr/local/bin/rpmf --find "filename or file pattern" /usr/local/bin/rpmf --insertdb "/var/rpmDBdir" DB is mysql !!! # 1. rpmlist ÆÄÀÏ ÀÛ¼ºÇϱ⠰¢ RPM ÆÄÀÏÀÌ ¼³Ä¡µÉ °æ·Î(rpm -qpl xxx.rpm)¸¦ xxx-rpm.list ÆÄÀÏ·Î ÀÛ¼º. (±âº» µð·ºÅ丮´Â ¸í·É¾î¸¦ ³»¸° À§Ä¡¿¡¼­ "rpmDBdir" À̶ó´Â µð·ºÅ丮°¡ »ý¼ºµÇ°í ±×°÷¿¡ *.list ÆÄÀÏÀÌ »ý¼ºµÊ.) ex) # mount /mnt/cdrom # which rpmf /usr/local/bin/rpmf # rpmf --makelist "/mnt/cdrom/RedHat/RPMS" ... ... # ls -d rpmDBdir rpmDBdir # (# mv rpmDBdir /var/) 2. ÆÄÀÏ Ã£±â ÀÛ¼ºµÈ list ÆÄÀÏÀ» ´ë»óÀ¸·Î ƯÁ¤ ÆÐÅÏÀÇ ÆÄÀÏ¿¡ ´ëÇؼ­ °Ë»öÇÏ¿© ±× °á°ú·Î ¾î¶² RPM ÆÄÀÏÀÎÁö È­¸é¿¡ Ãâ·ÂÇÔ. (ãÀ» ÆÄÀÏÀÇ ÆÐÅÏÀº Á¤±ÔÇ¥Çö½Ä °¡´É.) ex) # ls -d rpmDBdir rpmDBdir # # rpmf --find "(rc.local|mkbootdisk)" ...xxx-xxx.rpm ... # 3. ÀÛ¼ºÇÑ list ÆÄÀÏÀ» MySQL DB¿¡ ³Ö±â ¿ì¼± rpmf ÆÄÀÏÀ» ÆíÁý±â·Î ¿­¾î¼­ óÀ½ ºÎºÐÀÇ ¼³Á¤À» ¼öÁ¤ÇÔ. (DB insert°¡ ¿Ï·áµÇ¸é db pass´Â º¸¾È»ó Áö¿ìµµ·Ï ÇÔ) mysql_dbname="board" ## DB À̸§ mysql_dbuser="board_user" ## DB À¯Àú mysql_dbpass="xxxxxx" ## DB ¾ÏÈ£ mysql_table="rpmlist" ## Insert ÇÒ Å×À̺í À̸§ name_value="san2" ## ±Û¾´ÀÌ(?) (Âü°í·Î ÇÊÀÚ´Â 0.4 <="JBboard ¹öÀü" < 1.0 ¿¡¼­ Å×½ºÆ®ÇßÀ½.) ¸¸¾à Å×ÀÌºí ±¸Á¶°¡ num,name,title,text,date ÀÇ Columns ÀÌ ¾ø´Ù¸é rpmf ÆÄÀÏ¿¡¼­ insert_db ÇÔ¼öÀÇ ³»¿ëÀ» ¼öÁ¤ÇÔ. mysqlcolumns="num,name,title,text,date" num = ÀÏ·ÃÀÇ °Ô½ÃÆÇ Ãâ·Â ¹øÈ£ name = ±Û¾´ÀÌ À̸§ title = Á¦¸ñ(¿©±â¿¡ RPM ÆÄÀÏ À̸§ÀÌ µé¾î°¨) text = º»¹®³»¿ë(RPM ÆÄÀÏÀÌ ¼³Ä¡µÉ °æ·Î list°¡ µé¾î°¨) date = µî·Ï³¯Â¥(Unix timestamp °ªÀÓ.) ex) # ls -d /var/rpmDBdir /var/rpmDBdir # # rpmf --insertdb "/var/rpmDBdir" ... ...(¾à 1-3 ºÐÁ¤µµ ¼Ò¿ä) ... # http://www.linuxchannel.net/board/?table=rpmlist ¿¡¼­ º¼ ¼ö ÀÖ½À´Ï´Ù. END-----------------------------