Re: V?: aptitude reinstall from file contained package names?
On Sat, Jan 12, 2008 at 08:22:15AM +0100, Paul Csanyi [EMAIL PROTECTED] was heard to say: 2008/1/12, Douglas A. Tutty [EMAIL PROTECTED]: On Fri, Jan 11, 2008 at 09:47:21PM +0100, Paul Csanyi wrote: 2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. After all, I use aptitude to reinstall everything. You mean that you mark __every__ package as manually installed? No, I mean I used aptitude from a visual interface and there search for the installed packages. When I find one, I hit Shift + L to mark it for reinstall. If I mark too many packages, it happen that that aptitude can't to reinstall them all together. What do you mean by this? Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: V?: aptitude reinstall from file contained package names?
On Sat, Jan 12, 2008 at 07:57:07AM -0800, Daniel Burrows wrote: On Sat, Jan 12, 2008 at 08:22:15AM +0100, Paul Csanyi [EMAIL PROTECTED] was heard to say: 2008/1/12, Douglas A. Tutty [EMAIL PROTECTED]: On Fri, Jan 11, 2008 at 09:47:21PM +0100, Paul Csanyi wrote: 2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. After all, I use aptitude to reinstall everything. You mean that you mark __every__ package as manually installed? No, I mean I used aptitude from a visual interface and there search for the installed packages. When I find one, I hit Shift + L to mark it for reinstall. There should be no searching since the aptitude UI separates packags into installed, uninstalled... Just select all the installed as a group. If I mark too many packages, it happen that that aptitude can't to reinstall them all together. What do you mean by this? Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
VĂ¡: aptitude reinstall from file contained package names?
2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. I've never tried that automatically with aptitude and checking the man page suggests that its not possible. I tried but have not success. If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. After all, I use aptitude to reinstall everything. -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: V?: aptitude reinstall from file contained package names?
On Fri, Jan 11, 2008 at 09:47:21PM +0100, Paul Csanyi wrote: 2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. I've never tried that automatically with aptitude and checking the man page suggests that its not possible. I tried but have not success. If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. After all, I use aptitude to reinstall everything. You mean that you mark __every__ package as manually installed? If you take your list of packages and then use something like xargs, then a new instance of aptitude is loaded, one after another, to install each package. What you need is to give aptitude a list all on the command line. However, if you're telling it to install everything including all the otherwise-automatic libs, then I think you'll run out of command-line length before you complete your package list. Anyway, to turn your list of package names, one per line, into one line with many names, just preface all newlines with a \. Sounds like a simple job for sed with a regular expression but I don't do REs. You'd then have to read the bash man page to see the maximum lenght of command line and split that. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: V?: aptitude reinstall from file contained package names?
2008/1/12, Douglas A. Tutty [EMAIL PROTECTED]: On Fri, Jan 11, 2008 at 09:47:21PM +0100, Paul Csanyi wrote: 2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. After all, I use aptitude to reinstall everything. You mean that you mark __every__ package as manually installed? No, I mean I used aptitude from a visual interface and there search for the installed packages. When I find one, I hit Shift + L to mark it for reinstall. If I mark too many packages, it happen that that aptitude can't to reinstall them all together. When I tried to reinstall all installed packages from a file that contains the names of installed packages, it happen the same. Aptitude can't to reinstall all installed packages all together. So I decided to use aptitude from a visual interface for this task. I did this job within 1 hour or so. :) -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
aptitude reinstall from file contained package names?
Hello! I do on my home server aptitude search ~i installed_packages Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. How can I do that? I tried: # aptitude reinstall installed_packages but nothing happen. Any advice will be appreciated! -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: aptitude reinstall from file contained package names?
On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi [EMAIL PROTECTED] was heard to say: Hello! I do on my home server aptitude search ~i installed_packages Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. How can I do that? I tried: # aptitude reinstall installed_packages but nothing happen. Any advice will be appreciated! You need to pass the packages as command-line arguments, not on stdin. Try # aptitude reinstall $(cat installed_packages) Daniel -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: aptitude reinstall from file contained package names?
On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: I do on my home server aptitude search ~i installed_packages Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. How can I do that? I tried: # aptitude reinstall installed_packages but nothing happen. Any advice will be appreciated! I've never tried that automatically with aptitude and checking the man page suggests that its not possible. You can save and restore in that with with dpkg --get-selection and --set-selections options. What I do is do the aptitude search '~i!~M' which gives me a list of packages that are manually, not automatically installed. Then when I do a reinstall, I manually choose the packages interactivly. I'm on dial-up so I do it in logica chunks: basic CLI apps, basic X system, mail system, graphical browser, etc. If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: aptitude reinstall from file contained package names?
2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: I do on my home server aptitude search ~i installed_packages Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. How can I do that? I've never tried that automatically with aptitude and checking the man page suggests that its not possible. I checked the man page too and find nothing about installing from a file that being containing the list of installed packages. If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. I just want to reinstall everything installed on that system with one command. -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: aptitude reinstall from file contained package names?
On Wed, Jan 09, 2008 at 06:18:39PM +0100, Paul Csanyi wrote: 2008/1/9, Douglas A. Tutty [EMAIL PROTECTED]: On Wed, Jan 09, 2008 at 02:37:30PM +0100, Paul Csanyi wrote: I do on my home server aptitude search ~i installed_packages Now I want to reinstall all these packages listed in 'installed_packages' file, with aptitude. How can I do that? I've never tried that automatically with aptitude and checking the man page suggests that its not possible. I checked the man page too and find nothing about installing from a file that being containing the list of installed packages. If what you asked for really worked, then you would loose the main benefit of aptitude: keeping track of shifting dependancies and cruft controll. Everything would appear to be automatically installed. I just want to reinstall everything installed on that system with one command. If you don't care about manual vs automatic, then use dpkg. If you do care, then store only the names of manually installed packages and just install that. Doug. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]