> > > Nick Rout wrote: > >>On Thu, 29 Jan 2004 06:23:22 +1300 >>Roger Searle <[EMAIL PROTECTED]> wrote: >> >> >> >>>I'm very confused by the software installation process in linux. I've >>>followed the suggestion to "man rpm" which only managed to add to the >>>confusion: which switch to use? Then when I try them, I get >>>conflicting output. Really all I want is an original copy of the >>>smb.conf file so I can start again with it but am happy to reinstall >>>samba completely if that's easier (or can more quickly get help on the >>>right command). >>> >>>So far I've managed to get a copy of >>>samba-common-2.2.7a-7.9.0.i386.rpm >>>from the distro disk (rh9) after determining that this is where >>>smb.conf is. >>> >>>rpm -i [samba-file] >>>gives me "package is already installed". That's understandable - my >>>attempt to reinstall won't work that way. So to then try to erase it: >>> >>>rpm -e [samba-file] >>>gives me "package is not installed". I don't get that - I've just >>>been told previously that this package is already installed! >>> >>> >> >>confusing number of options huh? >> >>when erasing a package you need to just give the package name, not the >>package file name. >> > thanks everyone for all the help on this - i've got it sorted! (and for > the sample file, robert) > > works well when I use the package name! thanks . . . > >> >>ie rpm -e samba-common, not rpm -e samba-common-2.2.7a-7.9.0.i386.rpm >> >>if you have mc installed (and you should!) navigate to the rpm file and >>hit enter, you will then be able to see inside the package and just >>extract the file you want. (same goes for tar, gzipped tars, bz2 files, >>zip files etc) >> >>There may be a command in rpm to just extract one file, I cannot recall. >> > i figured out that the samba.conf file was in the samba-common rpm file > with mc, there's an info file there that lists the contents, but I never > saw how to extract a file.
just use f5 to copy to a real directory! > > no problem anyway. once i erased all the packages (after resolving all > the dependencies by removing those dependent packages first) i just did > a reinstall via the gui after inserting the redhat install disk. now > for the successful configuration which i'll leave for the weekend . . . > thats a problem, you shouldn't have needed to do that! did you try -U first? >> >>If those fail try rpm -Uvh samba-common-2.2.7a-7.9.0.i386.rpm (vh is >>just making it prettier, U is Update). You may also need the >>--replacepkgs switch. >> >> >> >> >> >>>So I'm stuck again. Would someone be kind enough to spoon feed me the >>>commands to either get a copy of smb.conf out of the rpm file, or to >>>remove and reinstall samba to do the same thing? Both would be great, >>>so I could understand both processes. >>> >>>Roger >>> >>> >>> >>> >>> >>> >>> >> >> >> >> >> >> > > >
