LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-01-2005, 07:20 PM   #16
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68

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.
 
Old 11-02-2005, 01:20 PM   #17
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Original Poster
Rep: Reputation: 15
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"

After that, to execute script, I run: ./c1-install
 
Old 11-02-2005, 04:11 PM   #18
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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.
 
Old 11-02-2005, 06:22 PM   #19
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Original Poster
Rep: Reputation: 15
Ok... I'll do it and then come back
 
Old 11-03-2005, 06:33 PM   #20
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
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.
 
Old 11-04-2005, 07:31 AM   #21
Xswitch
Member
 
Registered: Jul 2003
Distribution: Ubuntu, Debian
Posts: 139

Original Poster
Rep: Reputation: 15
Ok... I'll give it a shot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running edirectory/ConsoleOne on FC3 osnad Fedora 0 12-14-2004 11:47 AM
what is novell? servnov General 2 09-22-2004 08:34 PM
novell bought suse, now novell may be bought out ronss Linux - Distributions 3 11-17-2003 08:51 AM
Consoleone Deek_f Linux - Networking 0 09-17-2003 07:59 AM
Novell Client on Yopper. (Server running Novell 5 SP6) C++freak Linux - Networking 0 06-03-2003 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration