[Ubuntu-UY] pregunta de comandos

Guillermo Lisi guillermolisi en gmail.com
Mie Sep 19 01:29:28 UTC 2012


Entre otras cosas, que apt-get es mas mnemotecnico que dpkg.

Del man:

> DESCRIPTION
>        apt-get is the command-line tool for handling packages, and may
> be considered the user's "back-end" to other tools using the APT
> library. Several
>        "front-end" interfaces exist, such as dselect(1), aptitude(8),
> synaptic(8) and wajig(1).

> DESCRIPTION
>        dpkg  is  a  tool  to  install,  build, remove and manage
> Debian packages. The primary and more user-friendly front-end for dpkg
> is aptitude(1). dpkg
>        itself is controlled entirely via command line parameters,
> which consist of exactly one action and zero or more options. The 
> action-parameter  tells
>        dpkg what to do and options control the behavior of the action
> in some way.
>
>        dpkg can also be used as a front-end to dpkg-deb(1) and
> dpkg-query(1). The list of supported actions can be found later on in
> the ACTIONS section. If
>        any such action is encountered dpkg just runs dpkg-deb or
> dpkg-query with the parameters given to it, but no specific options
> are currently passed to
>        them, to use any such option the back-ends need to be called
> directly.
>
> INFORMATION ABOUT PACKAGES
>        dpkg  maintains  some  usable  information about available
> packages. The information is divided in three classes: states,
> selection states and flags.
>        These values are intended to be changed mainly with dselect.

Si entras en los detalles vas a ver que apt-get es mas facil de usar que
dpkg (y menos que Aptitude, por ejemplo), pero basicamente llegas a los
mismos resultados.

Personalmente, cuando tuve inconvenientes que apt-get no podia resolver,
Aptitude si. Y si este ultimo tampoco destrababa la cosa era porque
tenia que intervenir manualmente en el sistema de cache de paquetes de
la maquina.


On 09/18/2012 07:31 PM, dj wilko12 wrote:
> pero ambas hacen lo mismo? que cambiaria de usar una o la otra?
>
> > Date: Tue, 18 Sep 2012 19:30:30 -0300
> > From: guillermolisi at gmail.com
> > To: ubuntu-uy at lists.ubuntu.com
> > Subject: Re: [Ubuntu-UY] pregunta de comandos
> >
> > On 09/18/2012 07:19 PM, dj wilko12 wrote:
> > > hola a todos
> > > cuando uso ubuntu veo que tengo 2 formas de usar comandos: dpkg y
> apt get
> > >
> > > a modo de ejemplo, cual seria la dif de usar
> > >
> > > apt-get remove {package}
> > >
> > > o
> > >
> > > dpkg -r {package}
> > >
> > > muchas gracias
> > > marcelo
> > >
> > >
> > apt-get vendria a ser como el mostrador de dpkg. Es decir, lo que se
> > indique hacer con apt-get, para los casos de instalar y/o remover,
> > resulta en una linea de comando completita de dpkg quien es, en
> > definitiva, el que hace el trabajo realmente.
> >
> > --
> > Guillermo Lisi
> > http://ubuntu.org.ar
> > http://ubuntu.org.uy
> > http://www.guillermolisi.com.ar
> >
> >
> > --
> > Ubuntu-uy mailing list
> > Ubuntu-uy at lists.ubuntu.com
> > Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-uy


-- 
Guillermo Lisi
http://ubuntu.org.ar
http://ubuntu.org.uy
http://www.guillermolisi.com.ar




Más información sobre la lista de distribución Ubuntu-uy