[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: migration from RedHat to Debian, general question about Debian (dpkg, kernel, config)

Valentine Kouznetsov wrote:
I'm trying to migrate from RedHat to Debian and face
out with few problems. I'll be glad to resolve them
with your help.

Question about dpkg:
1) dpkg is great, but I cannot figure out one
simple/usefull procedure. Let's assume I install one
package and have file /usr/bin/my. Is is possible to
figure out using dpkg or similar tool to which package
/usr/bin/my belong to. On RedHat I just invoke rpm -qf
/usr/bin/my and get back package name.

Fram the man page:

dpkg -L | --listfiles package ...
        List files installed to your system from package.

2) Is it possible to check status of installed
software, what has been changed from original package,
etc. On RedHat it is rpm -V <package>

Not sure what you are asking here.

Questions about kernel:
This is very weird, but I can't get cdrom working with
my custom kernel. Here what I did.
apt-get install kernel-source-2.4.22
apt-get install kernel-patch-2.4.22
unpack kernel, applied debian patches
The kernel source from the Debian archive already has the Debian
patches applied.

(/usr/src/kernel-patch/all/2.4.22/apply/debian), then
applied other patches, in particular swsuspend. Then I
configure my kernel as necessary with config from
either RedHat or Debian, The only basic difference I
made is instead of compiling as modules CONFIG_IDE,
to be compiled into kernel. Well, install kernel and
got surprise that mounting cdrom I have "can't read
Any ideas?

What mount options are you using?

Question about configuration:
Where the natural place to put my own scripts while
booting to Debian. On RedHat it was /etc/rc.d/rc.local
What is equivalent on Debian?
Just put your script in /etc/init.d/ and symlink it to
whatever runlevel directories you need (like /etc/rc2.d/)

Where correctly put aliases for modules, there so many
config file for modules on Debian?
Either in /etc/modules.conf or in a file in /etc/modutils/
(it depends on your setup).
About runlevels, what the meaning of 2,3,4,5 runlevels
on Debian. On RedHat 3 is equivalent to 2 on Debian?

Basically, butyou can customize them.

Thank you,


Attachment: pgpSiV792_vIp.pgp
Description: PGP signature

Reply to: