Wednesday, May 8, 2024
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 769  / 1 Year ago, mon, march 13, 2023, 6:22:23

I am running Ubuntu 14.04 32-bit (Default Unity D.E.).I have Xubuntu14.04 desktop (32-bit) ISO file (image). It must exist Xubuntu Desktop Environment inside ISO file.



I don't want to install whole Xubuntu OS from ISO (by burning to Disk and clean-install)
But only Xubuntu Desktop Environment in my Ubuntu 14.04 OS.



I know that I can install Xubuntu D.E. by sudo apt-get install xubuntu-desktop in my current Ubuntu 14.04 OS.
But Can I install xubuntu desktop environment from xubuntu's iso file (Instead of online by apt-get)?



How to do that?


More From » package-management

 Answers
6

The command dpkg-repack can help you by following way:




  1. First List packages required for installing Desktop-Environment (Here example for xubuntu-desktop:



    sudo apt-get install  xubuntu-desktop -s | grep Inst | cut -d " " -f 2 > file1


    Above command writes required packages' list for xubuntu-desktop in file1.


  2. Use Try without installing option from live Environment from ISO (By either of 2 ways):-




    • Add entry of ISO in GRUB and directly use Live Environment (try OS without installing)

    • Burn ISO to DVD and go for Try Without Installing


  3. On Live Environment Run following command:



    sudo xargs dpkg-repack < file1


    Above command dpkg-repack creates deb files (in the directory where command is run) of all packages listed in file1 because Xubuntu's Live session contains all packages in installed condition! (Move/Copy them to your storage)


  4. Now You've all required debs in a directory. Restart and come Back to your Ubuntu (Default) OS and install packages either of following ways:




    • cd to directory containing all debs and run dpkg -i *.deb

    • OR (Recommended as standard method is APT) Install with help of Local repository







In brief : By this method you can get required debs by dpkg-repack from live session of distro's ISO and install them to current OS



Note/warning: Here same version of Ubuntu & Xubuntu used if there is old/update then dependency issues may brakes/downgrades current packages


[#24442] Tuesday, March 14, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cheeturage

Total Points: 432
Total Questions: 111
Total Answers: 115

Location: Bahrain
Member since Tue, Mar 1, 2022
2 Years ago
cheeturage questions
Sat, Dec 4, 21, 02:22, 2 Years ago
Mon, Jan 2, 23, 22:39, 1 Year ago
Sun, Sep 12, 21, 03:21, 3 Years ago
;