Friday, July 13, 2007

List your installed package versions with apt-show-versions

apt-show-versions parses the dpkg status file and the APT lists for the installed and available package versions and distribution and shows upgrade options within the specific distribution of the selected package.

This is really useful if you have a mixed stable/testing environment and want to list all packages which are from testing and can be upgraded in testing.

apt-show-versions uses caching for the status information of installed and available packages. If you run apt-show-versions as root the cache is updated as needed. If you run as non-root uses the newest available information, but can’t update the cache. If you run as root with the option -i the cache is initialized or updated only.

Install apt-show-versions in Debian

#apt-get install apt-show-versions

Install apt-show-versions in Ubuntu

sudo apt-get install apt-show-versions

Examples

If you want to run this command from the command line

#apt-show-versions

output looks like below

libdb1-compat/testing uptodate 2.1.3-9
libhtml-mason-perl/testing uptodate 1:1.33-2
libmailtools-perl/testing uptodate 1.74-0.1
libfile-scan-perl/testing uptodate 1.43-1
liborbit2/testing upgradeable from 1:2.14.0-2 to 1:2.14.3-0.1
discover1/testing uptodate 1.7.18
auto-apt/testing uptodate 0.3.21
mutt/testing uptodate 1.5.13-1
egroupware-phpsysinfo/testing upgradeable from 1.2-104.dfsg-3 to 1.2-105.dfsg-2
libssl0.9.8/testing upgradeable from 0.9.8b-3 to 0.9.8c-3
libgtk2.0-0/testing upgradeable from 2.8.20-1 to 2.8.20-3

If you want to see available upgraded you need to use -u option

#apt-show-versions -u

output looks like

ruby1.8/testing uptodate 1.8.5-3
bsdmainutils/testing uptodate 6.1.4
libtime-modules-perl/testing uptodate 2003.1126-2
slang1a-utf8 1.4.9dbs-8 installed: No available version in archive
tmpreaper/testing uptodate 1.6.6
eject/testing uptodate 2.1.4-2.1
ssh/testing upgradeable from 1:4.3p2-3 to 1:4.3p2-5

To get a list of all available versions of libc6

#apt-show-versions -a -p libc6

To upgrade all packages in testing:

#apt-get install ‘apt-show-versions -u -b | fgrep testing’

If you want to know more available options for apt-show-versions check man page

Wednesday, July 11, 2007

Jika anda punya masalah dengan instalasi LAMP, pastikan koneksi ketiganya berjalan, terutama antara Mysql dan PHPnya. Untuk mengetahui apakah PHP sudah support dengan Mysql (terutama PHP5 yang tidak built-in dengan MySQL), bisa mengetahuinya lewat PHP info, kalo tidak ada mysqlnya, edit php.ini, pastikan uncomment bagian extension=mysql.so dan extension_dir pastikan mengacu pada libphp.so, lalu samakan file php.ini disemua directory (anda bisa melakukan search file php.ini dengan mengetikkan perintah locate php.ini).

Sip, setelah itu anda bisa menggunakan LAMP,, selamat mencoba :)

PS : kasus berbeda untuk tiap pasien, jika tidak bekerja anda bisa langsung konsultasi dengan mbah Google,, hihihi,, piss ah!!

Tuesday, July 10, 2007

Bermasalah dengan apache? buka alamat tertentu eh malah suruh download?? hmm ,, ini solusinya,, tambahin aja 3 baris ntu ke httpd.conf

for apache to handle php files, 3 lines are required:

This one in the main server configuration block, as the LoadModule dorective only apply to server config context:
Quote:
LoadModule php5_module /usr/lib/apache2-extramodules/libphp5.so
of cource type the right path to libphp5.so.


and these 2 line could be added to server configuration context or to a virtual host config context:
Quote:
AddHandler php5-script .php
AddType text/html .php



make sure those apache directives applied to your apache configuration, no need for reinstalling I think, also your pleask will become non consistent when you do so.

Tuesday, July 03, 2007

Method 2

Using apt-get

Edit your /etc/apt/sources.list as root. Change every occurrence of dapper to edgy.

Use any prefered editor. If you have a CD-ROM line in your file, then remove it.

sudo vi /etc/apt/sources.list

or

use the following Simple command

sudo sed -e ’s/\sdapper/ edgy/g’ -i /etc/apt/sources.list

Now you need to update the source list using the following command

sudo apt-get update

Upgrade using the following command

sudo apt-get dist-upgrade

Double check your process was finished properly using the following commd

sudo apt-get -f install

sudo dpkg --configure -a

Now you need to Reboot your machine to take your new ubuntu 6.10 installation to effect all changes.

I hope you will enjoy your new Ubuntu Edgy Eft