I know I have some packages ready to be removed if I run apt-get autoremove
, but I just want to know which they are, without removing them. How can I list what would be removed without removing them? Alternatively, how can I run the above command and force it to prompt me?
Luca Borrione's questions
Using duplicity to backup a folder on a certain event, how can I get a list of all available backup dates as I don't know in advance when the event occurred? I want to list the available dates as deja-dup does. Final goal is to restore a certain date from the list.
duplicity file:///backup-folder restore-folder --restore-time "yyyy-mm-dd"
Unison sorts changes in order to first add new files and then to delete removed files.
When I use it to synchronize 2 USB drives, I can have problems with that if there's no room enough in the drives to store new staff without deleting first removed stuff.
So how can I tell unison to perform first deletion and to do anything remains?
I'm running lampp 1.7.1 on lubuntu oneiric.
I need to add extension for php_gd.
I installed php5-gd by
sudo apt-get install php5-gd
Had a look at php.ini and noticed the line
;extension=php_gd.dll
Searched for something with php_gd and found
/usr/include/php5/ext/gd/php_gd.h
Tried to copy it to
sudo cp -av '/usr/include/php5/ext/gd/php_gd.h' '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h'
sudo chmod 755 '/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h'
Added to php.ini
extension=php_gd.h
Restarted lampp and got this error:
PHP Warning: PHP Startup: Unable to load dynamic library
'/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h' -
/opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/php_gd.h:
invalid ELF header in Unknown on line 0
I need to use different versions of lampp (xampp for linux).
I recently also need to use memcache with any version of lampp I might need to use.
Everything is going right if I use the last lampp version 1.7.7 which contains PHP 5.3.8
I simply do
sudo apt-get install php5-memcache
sudo cp -av '/usr/lib/php5/20090626+lfs/memcache.so' '/opt/lampp/lib/php/extensions/no-debug-non-zts-20090626/memcache.so'
The problem is when I try to do the same with an older version of lampp.
For example, I uninstalled lampp 1.7.7 and php5-memcache, then I installed lampp 1.7.1, which contains PHP 5.2.9, but doing
sudo apt-get install php5-memcache
I get a newer version of memcache (20090626) for an older version of php (20060613). In fact if I try to copy
sudo cp -av '/usr/lib/php5/20090626+lfs/memcache.so' '/opt/lampp/lib/php/extensions/o-debug-non-zts-20060613/memcache.so'
I get this error while starting lampp:
Starting XAMPP for Linux 1.7.1...
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20090626, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
If I uninstall php5-memcahe and remove memcache.so from lampp extension
sudo apt-get remove php5-memcache
sudo rm /opt/lampp/lib/php/extensions/no-debug-non-zts-20060613/memcache.so
if I try to do
sudo pecl i memcache
I get
pecl/memcache is already installed and is the same as the released version 2.2.6
install failed
So how can I install memcache.so version 20060613 when I'm using lampp 1.7.1?