Upgrade a single package in Ubuntu
Answer:
To upgrade a single package, first need to perform an update first.
# sudo apt-get update
Then use the install sub command to perform an upgrade, e.g. apache2
#sudo apt-get install apache2
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Upgrade a single package in Ubuntu
Answer:
To upgrade a single package, first need to perform an update first.
# sudo apt-get update
Then use the install sub command to perform an upgrade, e.g. apache2
#sudo apt-get install apache2
Erase old downloaded packages from apt-get's cache
Answer:
The erase old downloaded packages from apt-get's cache, which are stored under the location: /var/cache/apt/archives
Try:
# sudo apt-get autoclean
Enable cron log in Ubuntu 10.04 (Lucid Lynx)
Answer:
By default, the output from cron goes into the default general system log "/var/log/syslog" in Ubuntu.
If you prefer to have an unique file for cron log, you can edit the file "/etc/rsyslog.d/50-default.conf"
Uncomment the line (Remove the #):
#cron.*
And finally restart the log service
# service rsyslog restart
Add Personal Package Archives (PPA) to the current repository in Ubuntu
Answer:
add-apt-repository is a helper script which adds an external APT repository to either /etc/apt/sources.list or a file in /etc/apt/sources.list.d/. It can also import the keys needed.
To get this tool, just a single command:
# sudo apt-get install python-software-properties
That is it.
Disable a service in Ubuntu using upstart
Answer:
In newer version of Ubuntu such as 10.04, some services are managed by upstart and you cannot disable them by using the old method.
For example, to disable the OpenSSH server, you need to edit the file /etc/init/ssh.conf, comment out the following lines:
# start on filesystem
# stop on runlevel [!2345]
Then this service will not start when you reboot your machine next time. All the upstart configurations files are under this folder and feel free to try it out.