个人工具

“UbuntuHelp:FeistyUpgradesFreshInstall”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第9行: 第9行:
 
0. Create a lists of your currently installed packages.
 
0. Create a lists of your currently installed packages.
 
<pre><nowiki>
 
<pre><nowiki>
dpkg --get-selections | grep -v deinstall > ubuntu-packages
+
  dpkg --get-selections | grep -v deinstall > ubuntu-packages
</nowiki></pre>
+
  </nowiki></pre>
 
Note: That is two - - in front of "get-selections" with no space.
 
Note: That is two - - in front of "get-selections" with no space.
 
0. Save this file '''ubuntu-packages''' on an external media (usb/floppy/cd).
 
0. Save this file '''ubuntu-packages''' on an external media (usb/floppy/cd).
第17行: 第17行:
 
0. Restore your packages. First enable your repositories. Then, in a terminal,
 
0. Restore your packages. First enable your repositories. Then, in a terminal,
 
<pre><nowiki>
 
<pre><nowiki>
sudo aptitude update
+
  sudo aptitude update
sudo dpkg --set-selections < ubuntu-packages
+
  sudo dpkg --set-selections < ubuntu-packages
sudo dselect
+
  sudo dselect
</nowiki></pre>
+
  </nowiki></pre>
 
Note: That is two - - in front of "set-selections" with no space.
 
Note: That is two - - in front of "set-selections" with no space.
 
viola
 
viola
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年12月6日 (四) 10:31的版本

Upgrade To a Fresh Feisty Install

Please note - This method is intended for those wishing to perform a fresh install of Feisty but maintain their user data and installed applications. 0. You may wish to make a back up of your current installation. One option is with partimage. Psychocats ~ Using PartImage in Ubuntu 0. You can preserve you user data and personal settings if you use a separate home partition. If you do not currently do not have a separate home partition you can easily create one. Psychocats ~ Create a separate /home partition in Ubuntu 0. Create a lists of your currently installed packages.

  dpkg --get-selections | grep -v deinstall > ubuntu-packages
  

Note: That is two - - in front of "get-selections" with no space. 0. Save this file ubuntu-packages on an external media (usb/floppy/cd). 0. Download and install Feisty. If you have a separate /home partition, mount it at /home DO NOT FORMAT IT. 0. Copy ubuntu-packages from your external media back to your home directory. 0. Restore your packages. First enable your repositories. Then, in a terminal,

  sudo aptitude update
  sudo dpkg --set-selections < ubuntu-packages
  sudo dselect
  

Note: That is two - - in front of "set-selections" with no space. viola