View Single Post

   
  #7 (permalink)  
Old 02-21-2008, 11:10 AM
Centurion
 
Posts: n/a
Default Re: Which Has The Best Package Control System?

nntp wrote:

> When I say "control system" I mean easy to search, install, upgrade,
> uninstall.


*SNIPPED*

> I did Debian aptitude, I was able to install package, but I can not find
> them in shell. I installed PHP and Apache, but I can not find PHP or
> HTTPD.


What's available?
apt-cache search <keyword/package-name>

Install something:
apt-get install <package>

Upgrade stuff:
apt-get upgrade

Upgrade everything and remove/install conflicts/dependencies as required:
apt-get dist-upgrade

See if something is installed:
dpkg -l <package>

See where files from a package ended up (you may want to pipe this through
less):
dpkg -L <package>

Remove something but leave the configs intact:
apt-get remove <package>

Remove something completely (leave no trace):
apt-get remove --purge <package>

Remember that "apt" and "aptitude" (and other GUI/X-based tools) are
front-ends to the Debian package system, dpkg.

Is Debian's package system superior to all others? In some ways yes, in
others, no. But for my money, it's the best Linux package system
available. YMMV.

> What about CentOS's package system? Do they use RPM? I heard it is very
> bad.


Yes, CentOS is an RPM-based system derived directly from Red Hat Enterprise
Linux.

RPM is a lot better than it used to be. The "historical" gripe about RPM was
it's lack of tools for automatic dependency resolution. Many solutions are
now available for this including yum (CentOS/Fedora/etc), urpmi (Mandriva),
yast (SuSE) or even apt-rpm which is an "apt" front-end for RPM systems
with all the "apt-get" goodness that's native on Debian. With apt-rpm the
advantage/difference between deb-based systems over RPM-based is really a
matter of preference IMHO.

Cheers,

James
--
To be wise, the only thing you really need to know is when to say
"I don't know."

Reply With Quote