These packages are for locales, I dare to suppose you have each of these
packages with "-en" suffix. Right? Well, script must not produce errors if they are absent. Anyway, if script execution faults, it will display the row index where breaking occures. You did not mention 'rpm' command. Did you replaced it with an appropriate calling of 'dpkg'? They use different options. The option '-i' is common but some sort of "forcing" are unlike. An easy way to find out all 'rpm' callings: $ grep -w rpm c1-install When you replace rpm with dpkg, you may execute script. It should work. |
When I did:
grep -w rpm c1-install I get this: #linux_NDSsice_ChineseS = NDSsice_zh_CN = NDSsice_zh_CN-8.7.0-1.i386.rpm #linux_NDSsice_ChineseT = NDSsice_zh_TW = NDSsice_zh_TW-8.7.0-1.i386.rpm #linux_NDSsice_Japanese = NDSsice_ja = NDSsice_ja-8.7.0-1.i386.rpm #linux_NDSsimgr_ChineseS = NDSsimgr_zh_CN = NDSsimgr_zh_CN-8.7.0-1.i386.rpm #linux_NDSsimgr_ChineseT = NDSsimgr_zh_TW = NDSsimgr_zh_TW-8.7.0-1.i386.rpm #linux_NDSsimgr_Japanese = NDSsimgr_ja = NDSsimgr_ja-8.7.0-1.i386.rpm #linux_NDSsldap_ChineseS = NDSsldap_zh_CN = NDSsldap_zh_CN-8.7.0-1.i386.rpm #linux_NDSsldap_ChineseT = NDSsldap_zh_TW = NDSsldap_zh_TW-8.7.0-1.i386.rpm #linux_NDSsldap_Japanese = NDSsldap_ja = NDSsldap_ja-8.7.0-1.i386.rpm #linux_NDSsslp_ChineseS = NDSsslp_zh_CN = NDSsslp_zh_CN-8.7.0-1.i386.rpm #linux_NDSsslp_ChineseT = NDSsslp_zh_TW = NDSsslp_zh_TW-8.7.0-1.i386.rpm #linux_NDSsslp_German = NDSsslp_de = NDSsslp_de-8.7.0-1.i386.rpm #linux_NDSsslp_Italian = NDSsslp_it = NDSsslp_it-8.7.0-1.i386.rpm #linux_NDSsslp_Japanese = NDSsslp_ja = NDSsslp_ja-8.7.0-1.i386.rpm #linux_NDSsslp_Portuguese = NDSsslp_pt = NDSsslp_pt-8.7.0-1.i386.rpm #linux_NDSsslp_Russian = NDSsslp_ru = NDSsslp_ru-8.7.0-1.i386.rpm #linux_NDSsslp_Spanish = NDSsslp_es = NDSsslp_es-8.7.0-1.i386.rpm #linux_NDSswan_ChineseS = NDSswan_zh_CN = NDSswan_zh_CN-8.7.0-1.i386.rpm #linux_NDSswan_ChineseT = NDSswan_zh_TW = NDSswan_zh_TW-8.7.0-1.i386.rpm #linux_NDSswan_Japanese = NDSswan_ja = NDSswan_ja-8.7.0-1.i386.rpm #linux_NDSspki_ChineseS = NDSspki_zh_CN = NDSspki_zh_CN-8.7.0-1.i386.rpm #linux_NDSspki_ChineseT = NDSspki_zh_TW = NDSspki_zh_TW-8.7.0-1.i386.rpm #linux_NDSspki_German = NDSspki_de = NDSspki_de-8.7.0-1.i386.rpm #linux_NDSspki_Italian = NDSspki_it = NDSspki_it-8.7.0-1.i386.rpm #linux_NDSspki_Japanese = NDSspki_ja = NDSspki_ja-8.7.0-1.i386.rpm #linux_NDSspki_Portuguese = NDSspki_pt = NDSspki_pt-8.7.0-1.i386.rpm #linux_NDSspki_Russian = NDSspki_ru = NDSspki_ru-8.7.0-1.i386.rpm #linux_NDSspki_Spanish = NDSspki_es = NDSspki_es-8.7.0-1.i386.rpm #linux_NDSsfrep_ChineseS = NDSsfrep_zh_CN = NDSsfrep_zh_CN-8.7.0-1.i386.rpm #linux_NDSsfrep_ChineseT = NDSsfrep_zh_TW = NDSsfrep_zh_TW-8.7.0-1.i386.rpm #linux_NDSsfrep_Japanese = NDSsfrep_ja = NDSsfrep_ja-8.7.0-1.i386.rpm if rpm -q $pkg_name >/dev/null 2>&1 #version_found=`rpm -qi $pkg_name 2>/dev/null | grep "Version" | awk '{print $3}'` version_found=`rpm -q --queryformat %{VERSION} $pkg_name 2>/dev/null` if rpm -q $edirectory_server_package >/dev/null 2>&1 rpm_name=`rpm -qa | grep openslp` str1="OpenSLP rpm \"" if rpm -ivh $ReplaceFiles $insrc_dir/$pkg_file $rpmforce # the NDSslp rpm does not do this anymore as of 8.7.3 do to Hamachi rpm -qa | grep NDSslp rpm -e --nodeps $pkg_name if rpm -q $pkg_name >/dev/null 2>&1 # if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 if rpm -q $pkg_name >/dev/null 2>&1 I've changed what locales that I could. There were some rpm's that showed in the script, but did not have the corresponding rpm file in the directory where it was extracted. It's almost as if the download was missing some rpm files. Here's what I mean: In the script there is a line that says: #linux_NDSsice_ChineseS = NDSsice_zh_CN = NDSsice_zh_CN-8.7.0-1.i386.rpm ... but in the original directory which contained all of the rpm files, there was no such rpm as NDSsice_zh_CN-8.7.0-1.i386.rpm How do I change the lower portion of the above script? Everywhere I see "rpm -q", replace with "dpkg -i":Pengy: After that, to execute script, I run: ./c1-install :Pengy: |
Ok, it is a very complex script. Bot do not afraid.
replace "rpm -q" as well as "rpm -qi" with "dpkg -s", as I see "rpm -q" redirected every where, so only integer return value is used. then "rpm -ihv" with "dpkg -i". "rpm -e --nodeps" with "dpkg -r --force-all" "rpm -qa" with "dpkg -l | awk '{print $2}'" The string: if rpm -ivh $ReplaceFiles $insrc_dir/$pkg_file $rpmforce is of undefined action, while you do not provide any information of the ReplacesFiles variable. Whether it is additional flags to 'rpm' or something else? Probably its value must be changed too. version_found=`rpm -q --queryformat %{VERSION} $pkg_name 2>/dev/null` IMHO should be replaced with: version_found=`dpkg -s $pkg_name 2>/dev/null | grep Version: | awk '{print $2}'` Hope this will work :) As I see it is all what you need. If you find some rpm's options else, post them out, we will think of their replacing with dpkg. So try do it. |
Ok... I'll do it and then come back :)
|
A little mistake: use 'dpkg -l | grep \^ii' instead of simply 'dpkg -l'.
It concerns the different of databases in RPM and Deb. RPM queries installed packeges only, meantime dpkg looks thru all packages in the cache, not only installed. |
Ok... I'll give it a shot.
|
All times are GMT -5. The time now is 04:08 PM. |