다름이 아니오라 up2date -l 을 했을 때 여러 팩키지 목록이 나옵니다..
아래의 예를 보여드리겠습니다.
[root@hosting ndccall]# up2date -l
Retrieving list of all available packages...
########################################
Removing installed packages from list of updates...
########################################
Removing packages marked to skip from list...
########################################
Getting headers for available packages...
########################################
Removing packages with files marked to skip from list...
########################################
Getting headers for skipped packages...
########################################
Name Version Rel
----------------------------------------------------------
rsync 2.4.6 13
The following Packages were marked to be skipped by your configuration:
Name Version Rel Reason
--------------------------------------------------------------------
kernel 2.4.9 31 Pkg name/pattern
kernel-headers 2.4.9 31 Pkg name/pattern
kernel-source 2.4.9 31 Pkg name/pattern
보시면 rsync가 업데이트 목록에 나와있습니다.
그런데 제가 rsync를 업데이트 하지 않을려면..
<물론 하나밖에 업데이트가 올라오지 않았으니 실행을 하지 않으면 되지
만 여러개 일때는 두개중 하나는 하고 하나는 안할려고 할때요.. >
vi /etc/sysconfig/rhn/up2date 파일을 열어.
removeSkipList[comment]=A list of package names, optionally including wildcards that up2date will not remove
removeSkipList=kernel*;rsync*;
해주고
removeSkipList[comment]=A list of package names, optionally including wildcards that up2date will not remove
removeSkipList=kernel*;rsync;
이렇게도 해주어봤습니다.
그런데 둘다 update가 됩니다.
아래를 보시면 설치 화면입니다.
[root@golden-hosting ndccall]# rpm -e rsync-2.4.6-13
[root@golden-hosting ndccall]# rpm -Uvh rsync-2.4.6-1.i386.rpm
현재 rsync의 버젼은 2.4.6-1 입니다.
Preparing... ########################################### [100%]
1:rsync ########################################### [100%]
[root@golden-hosting ndccall]#
[root@golden-hosting ndccall]#
[root@golden-hosting ndccall]# up2date -l
Retrieving list of all available packages...
########################################
Removing installed packages from list of updates...
########################################
Removing packages marked to skip from list...
########################################
Getting headers for available packages...
########################################
Removing packages with files marked to skip from list...
########################################
Getting headers for skipped packages...
########################################
Name Version Rel
----------------------------------------------------------
rsync 2.4.6 13
The following Packages were marked to be skipped by your configuration:
Name Version Rel Reason
--------------------------------------------------------------------kernel 2.4.9 31 Pkg name/pattern
kernel-headers 2.4.9 31 Pkg name/pattern
kernel-source 2.4.9 31 Pkg name/pattern
[root@hosting ndccall]# up2date -u
Retrieving list of all available packages...
########################################
Removing installed packages from list of updates...
########################################
Removing packages marked to skip from list...
########################################
Getting headers for available packages...
########################################
Removing packages with files marked to skip from list...
########################################
Getting headers for skipped packages...
########################################
The following Packages were marked to be skipped by your configuration:
Name Version Rel Reason
--------------------------------------------------------------------kernel 2.4.9 31 Pkg name/pattern
kernel-headers 2.4.9 31 Pkg name/pattern
kernel-source 2.4.9 31 Pkg name/pattern
Testing package set / solving RPM inter-dependencies...
########################################
Retrieving selected packages...
rsync-2.4.6-13.i386.rpm: ########################## Done.
Preparing... ########################################### [100%]
1:rsync ########################################### [100%]
[root@hosting ndccall]# rpm -qa | grep rsync
rsync-2.4.6-13
[root@hosting ndccall]#
업데이트가 되면서 rsync가 2.4.6.-13으로 바뀌었습니다.
해당 팩키지 업데이트 목록에 2개가 올라왔을시 하나는 업데이트를 안하
고 하나는 할려면 어떻게 해야되는지요?
그리고 추가로 하나만 더 질문을 드릴께요.
===================================================================
위의 버젼은 레드헷 7.2이기 때문에 up2date는 실행이 되지만..
제가 7.0에서 설치를 할때는 아래의 메세지가 에러가 나옵니다.
에러문구로 검색 또한 많이 해봤지만 정확히 판단이 안되네요.
Traceback (innermost last):
File "/usr/share/rhn/register/tui.py", line 1080, in ?
main()
File "/usr/share/rhn/register/tui.py", line 1076, in main
tui.run()
File "/usr/share/rhn/register/tui.py", line 1033, in run
win = self.windows[index](self.screen, self)
File "/usr/share/rhn/register/tui.py", line 661, in __init__
self.versionLabel2 = snack.Label(rhnreg.getVersion())
File "/usr/share/rhn/register/rhnreg.py", line 90, in getVersion
index = db.findbyname("redhat-release")[0]
rpm.error: error reading from database
[root@testlinux tmp]#
[root@testlinux tmp]# rpm -qa | grep python
python-1.5.2-27
python-xmlrpc-1.0-8
rpm-python-4.0-4
python-popt-0.6-4
python-devel-1.5.2-27
pythonlib-1.27-1
[root@testlinux tmp]#
또한 설치가 되어있습니다.
바쁘시겠지만 부족한 저에게 가르침을 주시면 정말 감사하겠습니다.
좋은 하루 되세요.--이 곳에 서명을 적어주십시오.
리눅서를 위한 .