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. 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. 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 > > > > >
