This Sheet collects the sources listed in the Responsa Kol Gadol Siman 26 by MOshe Ibn Chaviv discussing the permissibility of exporting seforim from Eretz Yisroel.
...כַּהֲנָא דְמָךְ וּשְׁבַק יַרְתּוֹ לְרִבִּי יֹאשַׁיָה וּקְבִיל רִבִּי לָֽעְזָר סָהֲדוּ דְלָא בְאַפּוֹי וּזְכִי לְרִבִּי יֹאשַׁיָה. וְלֹא עוֹד אֶלָּא דִשְׁבַק סְפָרִים. כָּתַב רִבִּי לָֽעְזָר לְיָרְֽתוֹי. סְפָרִים שֶׁזָּכָת בָּהֶן אֶרֶץ יִשְׂרָאֵל אֵין מוֹצִיאִין אוֹתָן חוּצָה לָאָרֶץ. רִבִּי נִיסַּי בְשֵׁם רִבִּי לָֽעְזָר. אִם כָּתַב עַל מְנָת לְהוֹצִיא מוֹצִיא. רִבִּי חִייָה בָּר בָּא בְּעָא קוֹמֵי רִבִּי יָסָי. מָהוּ לְהוֹצִיא. אָמַר לֵיהּ. לְעוֹבְדָא אַתְּ שְׁאַל לִי. אָמַר לֵיהּ. לֹא. וּבְאִישׁ לְרִבִּי זְעִירָא דְלָא אֲמַר לְיהּ עוֹבְדָא בְּגִין מֵידַע מָהוּ אֲמַר.
...Cahana died and had willed his estate to Rebbi Joshia. Rebbi Eleazar heard witnesses not in the presence [of the heirs] and handed the estate to Rebbi Joshia. Not only that, but the estate contained Torah scrolls. Rebbi Eleazar wrote to his heirs: Scrolls won by the Land of Israel cannot be taken outside. Rebbi Nissai in the name of Rebbi Eleazar: If they were written for export, they can be exported. Rebbi Ḥiyya bar Abba asked before Rebbi Yasa: May one export? He asked him, do you ask me in a practical case? He answered, no. Rebbi Zeˋira was dissatisfied that he had not asked in a practical case, to know what he would have said.
Baal HaItur

מצות עשה על כל אדם מישראל שיכתוב לו ס"ת ומאד צריך לחזר אחריה דאמר רבי יהושע בן לוי הלוקח ספר תורה מן השוק כחוטף מצוה מן השוק כתבו או שהגיה בו אפילו אות אחת כאילו קבלה מהר סיני וכל שכן שאין לו למוכרה אפילו יש לו הרבה מהם ואפילו למכור ישן כדי לקנות חדש אסור אפילו אין לו מה יאכל ומיהו אם צריך למוכרה כדי ללמוד תורה או לישא אשה ואין לו דבר אחר למכור שפיר דמי וכת' א"א הרא"ש ז"ל שזה לא נאמר אלא לדורות הראשוני' שהיו כותבין ס"ת ולומדי' בה אבל האידנא שכותבין ס"ת ומניחים אותו בבית הכנסת לקרות בהם ברבים מצות עשה על כל ישראל אשר ידו משגת לכתוב חומשי התורה ומשנה וגמרא ופירושיהם להגות בהן הוא ובניו. מצות כתיבת התורה היא כדי ללמוד בה דכתיב ולמדה את בני ישראל שימה בפיהם ועל ידי הגמרא ופירושה ידע פירוש המצות והדינין על בוריים לכן הן הן הספרים שאדם מצווה לכותבם וגם שלא למוכרם אם לא ללמוד תורה ולישא אשה:
Lashes are not given as punishment for the violation of this prohibition because at the time one enters, there is no prohibition. Should he decide to settle there, there is no deed involved.
It appears to me that if a king of Israel would conquer the land of Egypt with the approval of the court, it would be permissible to settle there. The prohibition against returning was only given to individuals or to dwell there while it is under the rule of the gentiles for their behavior is more depraved than that of the peoples of other lands as can be inferred from Leviticus 18:3: 'Do not follow the ways of Egypt....'