DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393
Rep:
Selecing packages in apt-get
I need to install all of php4. so when i apt-get install php4* i get dependency errors. There are only three packages that I need to prevent apt-get from installing, how can i prevent apt-get from installing these packages. They include two php3 packages and php4-ps.
try using aptitude to manually select all the pieces and bits you want. If you dont have it just apt-get install aptitude, but i think it's a debian core utility.
In Aptitude you can highlight a package and then press Enter to see its dependencies. And you can return to previous view by pressing "q". In this way, you can press Enter on some meta-package to see its depends and pick the ones that you want by first highlighting them and then pressing "+".
When you're done, you can press "g" and Aptitude shows you the planned changes. At this point you can cancel the installation of any package by highlighting it and pressing "=". To proceed to download & install the marked packages, just press "g" again.
Always remember to update the package database (by pressing "u") before you install new packages via Aptitude.
dselect is also very easy to use. It's a frontend for dpkg and is what I use for finding packages I want. It'll work out all the dependency errors by telling you what other things the package you are trying to select needs. Hope this helps
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.