how to install .rpm or .deb with dependencies

hi. i am new to suse, but have been using linux for awhile. so far liking what i see in 11.0.
am having a problem setting up a Canon MP160 printer. Using the std printer setup - it finds the printer, but when trying to configure it, get the following errors and it doesn’t finish:
terminate called after throwing an instance of ‘std::logic_error’
what():basic_string::_S_construct NULL not valid YaST got signal 6 at YCP file printer/dialogs.ycp:2569
/sbin/yast2: line 421: 3578 Aborted $ybindir/y2base $module “$@” “$SELECTED_GUI” $Y2_GEOMETRY $Y2UI_ARGS

i have .deb and .rpm files i have used with other distros to make the printer/scanner work. when i tried to install the .rpm, i got several dependency errors, so quit out.
Is there a way to install a .rpm or .deb file with something in suse that will automatically resolve any dependencies ?
thanks. btw, i did post this on another suse forum… i wasn’t sure which one i should be using.

In GNOME you can right click on the .rpm file select open with → package installer. It will install all required dependencies if the dependencies are present in the repositories added in your software repository configuration. Or you can keep all .rpm files in a local directory and add that directory as a repository (plain package repository) from YaST → Software Repositories → Add Repository …
I believe the Package Installer method that works in GNOME is not working in KDE4 as it is not getting root permission for some reason. But the adding repository thing works in both KDE and GNOME.
Hope that helps.

Konsole
su
password
“zypper in package.rpm” (omit quotation marks)

This only works if zypper is able to find the required dependencies in your configured repositories.

i tried the package installer, but it failed with dependency problems. i will try and attach results. also did the add repo dir as described, but am not sure how to get yast to install it.
guess i can’t post attachments, but it said it needs gtk+ and libxml.

yahoo!! success in using zypper to get the printer to working.
i also used it to install the scanner rpm’s. the scanner will scan by using the button on the scanner to print what is on the scanner, but so far i can’t scan a image to a file. i installed xsane, but it gives me the error “failed to open device pixma …
access to resource has been denied”.

This is a wild shot in the dark…but you could try looking at user permissions for that particular device.

thanks to all of you that posted. scanner is now working. not sure how… i am guessing a reboot or some downloaded updates must have finished getting things to working… weird, but am glad it works -)

I am trying to install Mplayer in my system(suse11.1)

I downloaded the rpm package as below

wget http://ftp.skynet.be/pub/packman/suse/11.1/x86_64/gnome-mplayer-0.9.9-1.pm.3.1.x86_64.rpm

but when I opened it with “Package Installer” to install it with all dependencies .I got the error as give below
‘’‘Could not find the rpm-Package in Pool’’’

I need help on this … please

If you have a rpm package which is asking for dependency packages also to be installed, you can use

rpm -ivh -aid <rpm_Package>

For example,

**# rpm -ivh --aid gcc4-4.1.0-18.EL4.i386.rpm
**warning: gcc4-4.1.0-18.EL4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing… ########################################### [100%]
1:glibc-kernheaders ########################################### 20%]
2:glibc-headers ########################################### 40%]
3:glibc-devel ########################################### 60%]
4:libgomp ########################################### 80%]
5:gcc4 ########################################### [100%]

you answered to an almost 5 years old thread which contains the answer
how to do it properly in post 3


PC: oS 12.3 x86_64 | i7-2600@3.40GHz | 16GB | KDE 4.10.0 | GTX 650 Ti
ThinkPad E320: oS 12.3 x86_64 | i3@2.30GHz | 8GB | KDE 4.10.0 | HD 3000
HannsBook: oS 12.3 x86_64 | SU4100@1.3GHz | 2GB | KDE 4.10.0 | GMA4500