apt-get and synaptic for Red Hat Linux / Fedora
Updated November 24, 2003
Created July 31, 2003
Autogenerated Site Map
Search this Site!:
Quick and simple to do command line apt:
System-wide proxy set up:
If you have to use a proxy then you can set it up system-wide here:
Make some changes to /etc/profile just before the following line:
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
When you're done it will look like this:
http_proxy=http://proxy.mydomain.com:8080/
https_proxy=https://proxy.mydomain.com:8080/
export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC http_proxy https_proxy
(I've bolded the changes so you'll see which lines to add)
Download apt:
http://apt.freshrpms.net/
Install apt:
rpm -hUv apt-0.5.5cnc6-fr0.rh80.1.i386.rpm
Set up apt's proxy:
vi /etc/apt/apt.conf
Make the following change:
Proxy "http://proxy.mydomain.com:8080/"; // http://user:pass@host:port/
Install synaptic:
apt-get update && apt-get install synaptic
Run synaptic:
synaptic
(Please don't place synaptic in the background!) Running from the menu is fine or from an xterm as "synaptic" is fine, but not as "synaptic &"
synaptic is just a GUI wrapper, it still calls apt-get to do all the dirty work.
To set up apt-get as a daily cron job, you can add the following script to /etc/cron.daily/:
#!/bin/sh
apt-get update && apt-get -y dist-upgrade
or you can add the following to root's crontab (crontab -e):
0 6 * * * apt-get update && apt-get -y dist-upgrade
Search this Site!:
Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html