Jump to content
Sign in to follow this  
tek-69

apt-get

Recommended Posts

I really like apt-get and was wondering how exactly it works. for exmple i wanted mplayer so all i did was type apt-get install mplayer. How did that work ? is mplayer included in apt and i was just lucky or will this work with other programs too? Does it have a list of programs somewhere ?

Share this post


Link to post
Share on other sites

apt-get looks at apt reposistories that you have listed in your /etc/apt/sources.list file. When you run an apt-get update it will go visit all of the sites and pull down the compiled list of all of the avialable rpms on those sites and make them local on your computer. So thats why if you need to do an apt-get upgrade ALWAYS do an apt-get update first. You want to be sure your local copy matches what the apt sites have on their side.

 

There is an easy way to search with apt. Say I was looking for something to stop spam on my mailserver but not sure if there's anything avaliable. I can run this command

 

apt-cache search spam

 

and that'll show me everything that has spam in the title and description.

 

look into installing synaptic

 

apt-get install synaptic

 

thats a nice gui tool for apt

Share this post


Link to post
Share on other sites

[root@localhost root]# apt-get upgrade

Reading Package Lists... Done

Building Dependency Tree... Done

The following packages will be upgraded

ethereal ethereal-gnome

The following packages have been kept back

gaim grip gstreamer-plugins gstreamer-plugins-devel gthumb sylpheed

2 packages upgraded, 0 newly installed, 0 removed and 6 not upgraded.

Need to get 5896kB of archives.

After unpacking 340kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://ayo.freshrpms.net redhat/9/i386/updates ethereal-gnome 0.10.0a-0.90.1 [2568kB]

Get:2 http://ayo.freshrpms.net redhat/9/i386/updates ethereal 0.10.0a-0.90.1 [3329kB]

Fetched 5896kB in 30s (194kB/s)

Executing RPM (-Uvh)...

Preparing... ########################################### [100%]

1:ethereal-gnome ########################################### [ 50%]

2:ethereal ########################################### [100%]

 

 

So why and how does apt decide what to "keep back" ? is there a way for me to not keep it back? Wish this prog had a man file *sigh*

have fun

tek

Share this post


Link to post
Share on other sites
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...