Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

apt-get: can i do this?

4 views
Skip to first unread message

barrack hussain obama

unread,
Sep 13, 2008, 2:29:36 PM9/13/08
to
can i get a program from the internet. eg i want gnu backgammon (its
called gnubg). can i do 'apt-get install pkg gnubg'?

am i typing the syntax wrong. what is the right syntax for getting a
remote package? With freebsd i would simply do 'pkg_add -r gnubg' *please
what is the similar command in debian?* :(

Message has been deleted

John Hasler

unread,
Sep 13, 2008, 2:50:58 PM9/13/08
to
barrack writes:
> can i get a program from the internet. eg i want gnu backgammon (its
> called gnubg). can i do 'apt-get install pkg gnubg'?

No, but you can do 'apt-get install gnubg'.

> With freebsd i would simply do 'pkg_add -r gnubg' *please what is the
> similar command in debian?* :(

man apt-get
--
John Hasler

Message has been deleted

John Hasler

unread,
Sep 13, 2008, 3:40:36 PM9/13/08
to
Martin writes:
> No, apt-get installs only packages from a repository. For a single
> package use dpkg.

Just to be clear, apt-get can install a single package from a repository.

> Best solution is to look for a repository that offers gnubg...

All full mirrors have it, as they do virtually every other piece of Free
Linux software in existence. 'sudo apt-get install gnubg' will work fine.
--
John Hasler

barrack hussain obama

unread,
Sep 13, 2008, 4:39:35 PM9/13/08
to
On Sat, 13 Sep 2008 14:40:36 -0500, John Hasler wrote:

> Martin writes:
>> No, apt-get installs only packages from a repository. For a single
>> package use dpkg.
>
> Just to be clear, apt-get can install a single package from a
> repository.

Can you explain a bit clearer please. i dont have - or know what a
'repository' is. i have a single cd that i installed the operating system
with and that is all.

all i am asking is what commands i need to type or what steps exactly i
need to do to get this game from the internet with all its dependancies.

thnaks

Message has been deleted

s. keeling

unread,
Sep 13, 2008, 10:03:15 PM9/13/08
to
barrack hussain obama <here@the>:

> On Sat, 13 Sep 2008 14:40:36 -0500, John Hasler wrote:
>
> > Martin writes:
> >> No, apt-get installs only packages from a repository. For a single
> >> package use dpkg.
> >
> > Just to be clear, apt-get can install a single package from a
> > repository.
>
> Can you explain a bit clearer please. i dont have - or know what a
> 'repository' is. i have a single cd that i installed the operating system
> with and that is all.

My /etc/apt/sources.list (this is for Etch):

deb http://debian.mirror.rafal.ca/debian/ etch main contrib non-free
deb http://security.debian.org/ etch/updates main contrib non-free
deb http://www.debian-multimedia.org etch main

Those are repos, and if your machine is net connected, you can slurp
from them too. I prefer aptitude:

aptitude update && aptitude install gnubg

is all you need. BTW, "aptitude search gnubg" says:

p gnubg - GTK or console backgammon program with analysis
p gnubg-data - Data files for GNU Backgammon

> all i am asking is what commands i need to type or what steps exactly i
> need to do to get this game from the internet with all its dependancies.

Then why won't you READ THE DOCUMENTATION OTHERS HAVE SUGGESTED?

Honestly, you just make yourself appear a troll by not doing so. You
say you also run FreeBSD, yet you don't read man pages?!? See
debian.org and tldp.org, and learn to google ("gnubg site:lists.debian.org").

I know, being a noob (no offense; I was one) is difficult, but you've
got to help us help you. We can't do it all for you.


--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://blinkynet.net/comp/uip5.html Linux Counter #80292
- - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me.

John F. Morse

unread,
Sep 14, 2008, 12:35:36 AM9/14/08
to
Martin Schnitkemper wrote:
> · barrack hussain obama <ne...@tiscali.co.uk> schrieb:

>
>
>> can i get a program from the internet. eg i want gnu backgammon (its
>> called gnubg). can i do 'apt-get install pkg gnubg'?
>>
>
> No, apt-get installs only packages from a repository. For a single package
> use dpkg. But keep in mind that dpkg does not resolve dependencies.
>
> Best solution is to look for a repository that offers gnubg, or create a
> local repository, add it to your sources.list, perform an update and
> install it then with apt-get.
>
> Martin.
> OS: openSUSE 10.2 (i586)
>


Martin,

May I suggest you use Debian instead of Suse, so you will learn
something about the DEB APT?


--
John

No Microsoft, Apple, AT&T, Intel, Novell, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.

Neil Ellwood

unread,
Sep 14, 2008, 3:18:40 AM9/14/08
to
On Sat, 13 Sep 2008 21:26:50 +0200, Martin Schnitkemper wrote:

> · barrack hussain obama <ne...@tiscali.co.uk> schrieb:
>

>> can i get a program from the internet. eg i want gnu backgammon (its
>> called gnubg). can i do 'apt-get install pkg gnubg'?
>

> No, apt-get installs only packages from a repository. For a single
> package use dpkg. But keep in mind that dpkg does not resolve
> dependencies.
>
> Best solution is to look for a repository that offers gnubg, or create a
> local repository, add it to your sources.list, perform an update and
> install it then with apt-get.
>
> Martin.


Try apt-get install gnubg gnubg-data from a root terminal
--
Neil
reverse ra and delete l
Linux user 335851

Message has been deleted

John F. Morse

unread,
Sep 14, 2008, 1:12:15 PM9/14/08
to
Martin Schnitkemper wrote:
> · John F. Morse <xanad...@example.invalid> schrieb:

>
>> May I suggest you use Debian instead of Suse, so you will learn
>> something about the DEB APT?
>>
>
> Tell me if I explained something wrong.
>
> Martin.
>


I already did.

So did John Hasler, et al.

You deleted the important quoted material though. Let me return it so
you will be able to see what I saw:

"No, apt-get installs only packages from a repository. For a single
package use dpkg. But keep in mind that dpkg does not resolve dependencies."

http://en.wikipedia.org/wiki/Dpkg

"dpkg itself is a low level tool; higher level tools, such as APT, are
used to fetch packages from remote locations or deal with complex
package relations. End users are encouraged to use tools like aptitude
or synaptic, having a more sophisticated way of dealing with package
relationships and a friendlier interface."

Therefore, preferred methods are:

1. Synaptic

2. Adept

3. apt-get

4. Aptitude

5. Deselect

6. ...

That Wiki also states that dpkg is similar to RPM in a comparison. RPM
is the basis for YaST, which Suse uses.

You use Suse, so I thought you were likely more familiar with it than a
DEB APT package-based distro.

More on RPMs: http://distrowatch.com/dwres.php?resource=article-rpm

Which package manager does each distro use?
http://distrowatch.com/stats.php?section=packagemanagement

The Debian GNU/Linux FAQ: Chapter 7 - Basics of the Debian package
management system:

http://www.debian.org/doc/FAQ/ch-pkg_basics

0 new messages